Skip to content

Commit 0e4198f

Browse files
operator intel-device-plugins-operator (0.32.0)
1 parent 531fafa commit 0e4198f

12 files changed

+2723
-0
lines changed
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/v2
13+
14+
# Copy files to locations specified by labels.
15+
COPY ./manifests /manifests/
16+
COPY ./metadata /metadata/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: v0.17.0
6+
creationTimestamp: null
7+
name: dlbdeviceplugins.deviceplugin.intel.com
8+
spec:
9+
group: deviceplugin.intel.com
10+
names:
11+
kind: DlbDevicePlugin
12+
listKind: DlbDevicePluginList
13+
plural: dlbdeviceplugins
14+
singular: dlbdeviceplugin
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+
DlbDevicePlugin is the Schema for the dlbdeviceplugins API. It represents
35+
the DLB device plugin responsible for advertising Intel DLB 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: DlbDevicePluginSpec defines the desired state of DlbDevicePlugin.
57+
properties:
58+
image:
59+
description: Image is a container image with DLB device plugin executable.
60+
type: string
61+
initImage:
62+
description: InitImage is a container image with a script that initializes
63+
devices.
64+
type: string
65+
logLevel:
66+
description: LogLevel sets the plugin's log level.
67+
minimum: 0
68+
type: integer
69+
nodeSelector:
70+
additionalProperties:
71+
type: string
72+
description: NodeSelector provides a simple way to constrain device
73+
plugin pods to nodes with particular labels.
74+
type: object
75+
tolerations:
76+
description: Specialized nodes (e.g., with accelerators) can be Tainted
77+
to make sure unwanted pods are not scheduled on them. Tolerations
78+
can be set for the plugin pod to neutralize the Taint.
79+
items:
80+
description: |-
81+
The pod this Toleration is attached to tolerates any taint that matches
82+
the triple <key,value,effect> using the matching operator <operator>.
83+
properties:
84+
effect:
85+
description: |-
86+
Effect indicates the taint effect to match. Empty means match all taint effects.
87+
When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.
88+
type: string
89+
key:
90+
description: |-
91+
Key is the taint key that the toleration applies to. Empty means match all taint keys.
92+
If the key is empty, operator must be Exists; this combination means to match all values and all keys.
93+
type: string
94+
operator:
95+
description: |-
96+
Operator represents a key's relationship to the value.
97+
Valid operators are Exists and Equal. Defaults to Equal.
98+
Exists is equivalent to wildcard for value, so that a pod can
99+
tolerate all taints of a particular category.
100+
type: string
101+
tolerationSeconds:
102+
description: |-
103+
TolerationSeconds represents the period of time the toleration (which must be
104+
of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default,
105+
it is not set, which means tolerate the taint forever (do not evict). Zero and
106+
negative values will be treated as 0 (evict immediately) by the system.
107+
format: int64
108+
type: integer
109+
value:
110+
description: |-
111+
Value is the taint value the toleration matches to.
112+
If the operator is Exists, the value should be empty, otherwise just a regular string.
113+
type: string
114+
type: object
115+
type: array
116+
type: object
117+
status:
118+
description: DlbDevicePluginStatus defines the observed state of DlbDevicePlugin.
119+
properties:
120+
controlledDaemonSet:
121+
description: ControlledDaemoSet references the DaemonSet controlled
122+
by the operator.
123+
properties:
124+
apiVersion:
125+
description: API version of the referent.
126+
type: string
127+
fieldPath:
128+
description: |-
129+
If referring to a piece of an object instead of an entire object, this string
130+
should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2].
131+
For example, if the object reference is to a container within a pod, this would take on a value like:
132+
"spec.containers{name}" (where "name" refers to the name of the container that triggered
133+
the event) or if no container name is specified "spec.containers[2]" (container with
134+
index 2 in this pod). This syntax is chosen only to have some well-defined way of
135+
referencing a part of an object.
136+
type: string
137+
kind:
138+
description: |-
139+
Kind of the referent.
140+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
141+
type: string
142+
name:
143+
description: |-
144+
Name of the referent.
145+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
146+
type: string
147+
namespace:
148+
description: |-
149+
Namespace of the referent.
150+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
151+
type: string
152+
resourceVersion:
153+
description: |-
154+
Specific resourceVersion to which this reference is made, if any.
155+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
156+
type: string
157+
uid:
158+
description: |-
159+
UID of the referent.
160+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
161+
type: string
162+
type: object
163+
x-kubernetes-map-type: atomic
164+
desiredNumberScheduled:
165+
description: |-
166+
The total number of nodes that should be running the device plugin
167+
pod (including nodes correctly running the device plugin pod).
168+
format: int32
169+
type: integer
170+
nodeNames:
171+
description: The list of Node names where the device plugin pods are
172+
running.
173+
items:
174+
type: string
175+
type: array
176+
numberReady:
177+
description: |-
178+
The number of nodes that should be running the device plugin pod and have one
179+
or more of the device plugin pod running and ready.
180+
format: int32
181+
type: integer
182+
required:
183+
- desiredNumberScheduled
184+
- numberReady
185+
type: object
186+
type: object
187+
served: true
188+
storage: true
189+
subresources:
190+
status: {}
191+
status:
192+
acceptedNames:
193+
kind: ""
194+
plural: ""
195+
conditions: null
196+
storedVersions: null

0 commit comments

Comments
 (0)