Skip to content

Commit b208663

Browse files
operator intel-device-plugins-operator (0.34.0)
1 parent a7533d5 commit b208663

9 files changed

+1991
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM scratch
2+
3+
# Core bundle labels.
4+
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
5+
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
6+
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
7+
LABEL operators.operatorframework.io.bundle.package.v1=intel-device-plugins-operator
8+
LABEL operators.operatorframework.io.bundle.channels.v1=stable
9+
LABEL operators.operatorframework.io.bundle.channel.default.v1=stable
10+
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.37.0
11+
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1
12+
LABEL operators.operatorframework.io.metrics.project_layout=go.kubebuilder.io/v4
13+
14+
# Copy files to locations specified by labels.
15+
COPY ./manifests /manifests/
16+
COPY ./metadata /metadata/
Lines changed: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,206 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: v0.18.0
6+
creationTimestamp: null
7+
name: dsadeviceplugins.deviceplugin.intel.com
8+
spec:
9+
group: deviceplugin.intel.com
10+
names:
11+
kind: DsaDevicePlugin
12+
listKind: DsaDevicePluginList
13+
plural: dsadeviceplugins
14+
singular: dsadeviceplugin
15+
scope: Cluster
16+
versions:
17+
- additionalPrinterColumns:
18+
- jsonPath: .status.desiredNumberScheduled
19+
name: Desired
20+
type: integer
21+
- jsonPath: .status.numberReady
22+
name: Ready
23+
type: integer
24+
- jsonPath: .spec.nodeSelector
25+
name: Node Selector
26+
type: string
27+
- jsonPath: .metadata.creationTimestamp
28+
name: Age
29+
type: date
30+
name: v1
31+
schema:
32+
openAPIV3Schema:
33+
description: |-
34+
DsaDevicePlugin is the Schema for the dsadeviceplugins API. It represents
35+
the DSA device plugin responsible for advertising Intel DSA hardware resources to
36+
the kubelet.
37+
properties:
38+
apiVersion:
39+
description: |-
40+
APIVersion defines the versioned schema of this representation of an object.
41+
Servers should convert recognized schemas to the latest internal value, and
42+
may reject unrecognized values.
43+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
44+
type: string
45+
kind:
46+
description: |-
47+
Kind is a string value representing the REST resource this object represents.
48+
Servers may infer this from the endpoint the client submits requests to.
49+
Cannot be updated.
50+
In CamelCase.
51+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
52+
type: string
53+
metadata:
54+
type: object
55+
spec:
56+
description: DsaDevicePluginSpec defines the desired state of DsaDevicePlugin.
57+
properties:
58+
image:
59+
description: Image is a container image with DSA device plugin executable.
60+
type: string
61+
initImage:
62+
description: InitImage is an initcontainer image to configure and
63+
enable DSA devices and workqueues with idxd-config (accel-config)
64+
utility
65+
type: string
66+
logLevel:
67+
description: LogLevel sets the plugin's log level.
68+
minimum: 0
69+
type: integer
70+
nodeSelector:
71+
additionalProperties:
72+
type: string
73+
description: NodeSelector provides a simple way to constrain device
74+
plugin pods to nodes with particular labels.
75+
type: object
76+
provisioningConfig:
77+
description: ProvisioningConfig is a ConfigMap used to pass the DSA
78+
devices and workqueues configuration into idxd-config initcontainer.
79+
type: string
80+
sharedDevNum:
81+
description: SharedDevNum is a number of containers that can share
82+
the same DSA device.
83+
minimum: 1
84+
type: integer
85+
tolerations:
86+
description: Specialized nodes (e.g., with accelerators) can be Tainted
87+
to make sure unwanted pods are not scheduled on them. Tolerations
88+
can be set for the plugin pod to neutralize the Taint.
89+
items:
90+
description: |-
91+
The pod this Toleration is attached to tolerates any taint that matches
92+
the triple <key,value,effect> using the matching operator <operator>.
93+
properties:
94+
effect:
95+
description: |-
96+
Effect indicates the taint effect to match. Empty means match all taint effects.
97+
When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
98+
type: string
99+
key:
100+
description: |-
101+
Key is the taint key that the toleration applies to. Empty means match all taint keys.
102+
If the key is empty, operator must be Exists; this combination means to match all values and all keys.
103+
type: string
104+
operator:
105+
description: |-
106+
Operator represents a key's relationship to the value.
107+
Valid operators are Exists and Equal. Defaults to Equal.
108+
Exists is equivalent to wildcard for value, so that a pod can
109+
tolerate all taints of a particular category.
110+
type: string
111+
tolerationSeconds:
112+
description: |-
113+
TolerationSeconds represents the period of time the toleration (which must be
114+
of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
115+
it is not set, which means tolerate the taint forever (do not evict). Zero and
116+
negative values will be treated as 0 (evict immediately) by the system.
117+
format: int64
118+
type: integer
119+
value:
120+
description: |-
121+
Value is the taint value the toleration matches to.
122+
If the operator is Exists, the value should be empty, otherwise just a regular string.
123+
type: string
124+
type: object
125+
type: array
126+
type: object
127+
status:
128+
description: DsaDevicePluginStatus defines the observed state of DsaDevicePlugin.
129+
properties:
130+
controlledDaemonSet:
131+
description: ControlledDaemoSet references the DaemonSet controlled
132+
by the operator.
133+
properties:
134+
apiVersion:
135+
description: API version of the referent.
136+
type: string
137+
fieldPath:
138+
description: |-
139+
If referring to a piece of an object instead of an entire object, this string
140+
should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
141+
For example, if the object reference is to a container within a pod, this would take on a value like:
142+
"spec.containers{name}" (where "name" refers to the name of the container that triggered
143+
the event) or if no container name is specified "spec.containers[2]" (container with
144+
index 2 in this pod). This syntax is chosen only to have some well-defined way of
145+
referencing a part of an object.
146+
type: string
147+
kind:
148+
description: |-
149+
Kind of the referent.
150+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
151+
type: string
152+
name:
153+
description: |-
154+
Name of the referent.
155+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
156+
type: string
157+
namespace:
158+
description: |-
159+
Namespace of the referent.
160+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
161+
type: string
162+
resourceVersion:
163+
description: |-
164+
Specific resourceVersion to which this reference is made, if any.
165+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
166+
type: string
167+
uid:
168+
description: |-
169+
UID of the referent.
170+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
171+
type: string
172+
type: object
173+
x-kubernetes-map-type: atomic
174+
desiredNumberScheduled:
175+
description: |-
176+
The total number of nodes that should be running the device plugin
177+
pod (including nodes correctly running the device plugin pod).
178+
format: int32
179+
type: integer
180+
nodeNames:
181+
description: The list of Node names where the device plugin pods are
182+
running.
183+
items:
184+
type: string
185+
type: array
186+
numberReady:
187+
description: |-
188+
The number of nodes that should be running the device plugin pod and have one
189+
or more of the device plugin pod running and ready.
190+
format: int32
191+
type: integer
192+
required:
193+
- desiredNumberScheduled
194+
- numberReady
195+
type: object
196+
type: object
197+
served: true
198+
storage: true
199+
subresources:
200+
status: {}
201+
status:
202+
acceptedNames:
203+
kind: ""
204+
plural: ""
205+
conditions: null
206+
storedVersions: null

0 commit comments

Comments
 (0)