Skip to content

Commit dac99ad

Browse files
committed
operator: DSA: [re]generated files
Signed-off-by: Ed Bartosh <[email protected]>
1 parent 884f8e3 commit dac99ad

File tree

5 files changed

+307
-1
lines changed

5 files changed

+307
-1
lines changed
Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,144 @@
1+
2+
---
3+
apiVersion: apiextensions.k8s.io/v1beta1
4+
kind: CustomResourceDefinition
5+
metadata:
6+
annotations:
7+
controller-gen.kubebuilder.io/version: v0.4.1
8+
creationTimestamp: null
9+
name: dsadeviceplugins.deviceplugin.intel.com
10+
spec:
11+
additionalPrinterColumns:
12+
- JSONPath: .status.desiredNumberScheduled
13+
name: Desired
14+
type: integer
15+
- JSONPath: .status.numberReady
16+
name: Ready
17+
type: integer
18+
- JSONPath: .spec.nodeSelector
19+
name: Node Selector
20+
type: string
21+
- JSONPath: .metadata.creationTimestamp
22+
name: Age
23+
type: date
24+
group: deviceplugin.intel.com
25+
names:
26+
kind: DsaDevicePlugin
27+
listKind: DsaDevicePluginList
28+
plural: dsadeviceplugins
29+
singular: dsadeviceplugin
30+
scope: Namespaced
31+
subresources:
32+
status: {}
33+
validation:
34+
openAPIV3Schema:
35+
description: DsaDevicePlugin is the Schema for the dsadeviceplugins API. It
36+
represents the DSA device plugin responsible for advertising Intel DSA hardware
37+
resources to the kubelet.
38+
properties:
39+
apiVersion:
40+
description: 'APIVersion defines the versioned schema of this representation
41+
of an object. Servers should convert recognized schemas to the latest
42+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
43+
type: string
44+
kind:
45+
description: 'Kind is a string value representing the REST resource this
46+
object represents. Servers may infer this from the endpoint the client
47+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
48+
type: string
49+
metadata:
50+
type: object
51+
spec:
52+
description: DsaDevicePluginSpec defines the desired state of DsaDevicePlugin.
53+
properties:
54+
image:
55+
description: Image is a container image with DSA device plugin executable.
56+
type: string
57+
logLevel:
58+
description: LogLevel sets the plugin's log level.
59+
minimum: 0
60+
type: integer
61+
nodeSelector:
62+
additionalProperties:
63+
type: string
64+
description: NodeSelector provides a simple way to constrain device
65+
plugin pods to nodes with particular labels.
66+
type: object
67+
sharedDevNum:
68+
description: SharedDevNum is a number of containers that can share the
69+
same DSA device.
70+
minimum: 1
71+
type: integer
72+
type: object
73+
status:
74+
description: DsaDevicePluginStatus defines the observed state of DsaDevicePlugin.
75+
properties:
76+
controlledDaemonSet:
77+
description: ControlledDaemoSet references the DaemonSet controlled
78+
by the operator.
79+
properties:
80+
apiVersion:
81+
description: API version of the referent.
82+
type: string
83+
fieldPath:
84+
description: 'If referring to a piece of an object instead of an
85+
entire object, this string should contain a valid JSON/Go field
86+
access statement, such as desiredState.manifest.containers[2].
87+
For example, if the object reference is to a container within
88+
a pod, this would take on a value like: "spec.containers{name}"
89+
(where "name" refers to the name of the container that triggered
90+
the event) or if no container name is specified "spec.containers[2]"
91+
(container with index 2 in this pod). This syntax is chosen only
92+
to have some well-defined way of referencing a part of an object.
93+
TODO: this design is not final and this field is subject to change
94+
in the future.'
95+
type: string
96+
kind:
97+
description: 'Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
98+
type: string
99+
name:
100+
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
101+
type: string
102+
namespace:
103+
description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
104+
type: string
105+
resourceVersion:
106+
description: 'Specific resourceVersion to which this reference is
107+
made, if any. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency'
108+
type: string
109+
uid:
110+
description: 'UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids'
111+
type: string
112+
type: object
113+
desiredNumberScheduled:
114+
description: The total number of nodes that should be running the device
115+
plugin pod (including nodes correctly running the device plugin pod).
116+
format: int32
117+
type: integer
118+
nodeNames:
119+
description: The list of Node names where the device plugin pods are
120+
running.
121+
items:
122+
type: string
123+
type: array
124+
numberReady:
125+
description: The number of nodes that should be running the device plugin
126+
pod and have one or more of the device plugin pod running and ready.
127+
format: int32
128+
type: integer
129+
required:
130+
- desiredNumberScheduled
131+
- numberReady
132+
type: object
133+
type: object
134+
version: v1
135+
versions:
136+
- name: v1
137+
served: true
138+
storage: true
139+
status:
140+
acceptedNames:
141+
kind: ""
142+
plural: ""
143+
conditions: []
144+
storedVersions: []

deployments/operator/crd/bases/deviceplugin.intel.com_fpgadeviceplugins.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ spec:
6363
minimum: 0
6464
type: integer
6565
mode:
66-
description: Mode is a mode the plugin's operation.
66+
description: Mode is a mode of the plugin's operation.
6767
enum:
6868
- af
6969
- region

deployments/operator/rbac/role.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,26 @@ rules:
4141
verbs:
4242
- get
4343
- update
44+
- apiGroups:
45+
- deviceplugin.intel.com
46+
resources:
47+
- dsadeviceplugins
48+
verbs:
49+
- create
50+
- delete
51+
- get
52+
- list
53+
- patch
54+
- update
55+
- watch
56+
- apiGroups:
57+
- deviceplugin.intel.com
58+
resources:
59+
- dsadeviceplugins/status
60+
verbs:
61+
- get
62+
- patch
63+
- update
4464
- apiGroups:
4565
- deviceplugin.intel.com
4666
resources:

deployments/operator/webhook/manifests.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,26 @@ metadata:
66
creationTimestamp: null
77
name: mutating-webhook-configuration
88
webhooks:
9+
- admissionReviewVersions:
10+
- v1
11+
clientConfig:
12+
service:
13+
name: webhook-service
14+
namespace: system
15+
path: /mutate-deviceplugin-intel-com-v1-dsadeviceplugin
16+
failurePolicy: Fail
17+
name: mdsadeviceplugin.kb.io
18+
rules:
19+
- apiGroups:
20+
- deviceplugin.intel.com
21+
apiVersions:
22+
- v1
23+
operations:
24+
- CREATE
25+
- UPDATE
26+
resources:
27+
- dsadeviceplugins
28+
sideEffects: None
929
- admissionReviewVersions:
1030
- v1
1131
clientConfig:
@@ -134,6 +154,26 @@ metadata:
134154
creationTimestamp: null
135155
name: validating-webhook-configuration
136156
webhooks:
157+
- admissionReviewVersions:
158+
- v1
159+
clientConfig:
160+
service:
161+
name: webhook-service
162+
namespace: system
163+
path: /validate-deviceplugin-intel-com-v1-dsadeviceplugin
164+
failurePolicy: Fail
165+
name: vdsadeviceplugin.kb.io
166+
rules:
167+
- apiGroups:
168+
- deviceplugin.intel.com
169+
apiVersions:
170+
- v1
171+
operations:
172+
- CREATE
173+
- UPDATE
174+
resources:
175+
- dsadeviceplugins
176+
sideEffects: None
137177
- admissionReviewVersions:
138178
- v1
139179
clientConfig:

pkg/apis/deviceplugin/v1/zz_generated.deepcopy.go

Lines changed: 102 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)