Skip to content

Commit d44a7b7

Browse files
operator intel-device-plugins-operator (0.30.0)
Signed-off-by: Hyeongju Johannes Lee <[email protected]>
1 parent 6d17407 commit d44a7b7

13 files changed

+2954
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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=alpha
9+
LABEL operators.operatorframework.io.bundle.channel.default.v1=alpha
10+
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.30.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+
# Labels for testing.
15+
LABEL operators.operatorframework.io.test.mediatype.v1=scorecard+v1
16+
LABEL operators.operatorframework.io.test.config.v1=tests/scorecard/
17+
18+
# Copy files to locations specified by labels.
19+
COPY ./manifests /manifests/
20+
COPY ./metadata /metadata/
21+
COPY ./tests/scorecard /tests/scorecard/
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
apiVersion: apiextensions.k8s.io/v1
2+
kind: CustomResourceDefinition
3+
metadata:
4+
annotations:
5+
controller-gen.kubebuilder.io/version: v0.14.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+
TODO: this design is not final and this field is subject to change in the future.
137+
type: string
138+
kind:
139+
description: |-
140+
Kind of the referent.
141+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
142+
type: string
143+
name:
144+
description: |-
145+
Name of the referent.
146+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
147+
type: string
148+
namespace:
149+
description: |-
150+
Namespace of the referent.
151+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/
152+
type: string
153+
resourceVersion:
154+
description: |-
155+
Specific resourceVersion to which this reference is made, if any.
156+
More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
157+
type: string
158+
uid:
159+
description: |-
160+
UID of the referent.
161+
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids
162+
type: string
163+
type: object
164+
x-kubernetes-map-type: atomic
165+
desiredNumberScheduled:
166+
description: |-
167+
The total number of nodes that should be running the device plugin
168+
pod (including nodes correctly running the device plugin pod).
169+
format: int32
170+
type: integer
171+
nodeNames:
172+
description: The list of Node names where the device plugin pods are
173+
running.
174+
items:
175+
type: string
176+
type: array
177+
numberReady:
178+
description: |-
179+
The number of nodes that should be running the device plugin pod and have one
180+
or more of the device plugin pod running and ready.
181+
format: int32
182+
type: integer
183+
required:
184+
- desiredNumberScheduled
185+
- numberReady
186+
type: object
187+
type: object
188+
served: true
189+
storage: true
190+
subresources:
191+
status: {}
192+
status:
193+
acceptedNames:
194+
kind: ""
195+
plural: ""
196+
conditions: null
197+
storedVersions: null

0 commit comments

Comments
 (0)