File tree 8 files changed +16
-58
lines changed
8 files changed +16
-58
lines changed Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ func newCommand() *cobra.Command {
159
159
driverPluginPath : driverPluginPath ,
160
160
}
161
161
162
- if flags .status != nil {
162
+ if * flags .status != "" {
163
163
gas := intelcrd .NewGaudiAllocationState (config .crdconfig , intelclient )
164
164
return setStatus (cmd .Context (), * flags .status , gas )
165
165
}
@@ -171,12 +171,13 @@ func newCommand() *cobra.Command {
171
171
}
172
172
173
173
func validateFlags (f * flagsType ) error {
174
-
175
174
switch strings .ToLower (* f .status ) {
176
175
case strings .ToLower (intelcrd .GaudiAllocationStateStatusReady ):
177
176
* f .status = intelcrd .GaudiAllocationStateStatusReady
178
177
case strings .ToLower (intelcrd .GaudiAllocationStateStatusNotReady ):
179
178
* f .status = intelcrd .GaudiAllocationStateStatusNotReady
179
+ case "" :
180
+ return nil
180
181
default :
181
182
return fmt .Errorf ("unknown status: %v" , * f .status )
182
183
}
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ func newCommand() *cobra.Command {
159
159
driverPluginPath : driverPluginPath ,
160
160
}
161
161
162
- if flags .status != nil {
162
+ if * flags .status != "" {
163
163
gas := intelcrd .NewGpuAllocationState (config .crdconfig , intelclient )
164
164
return setStatus (cmd .Context (), * flags .status , gas )
165
165
}
@@ -171,12 +171,13 @@ func newCommand() *cobra.Command {
171
171
}
172
172
173
173
func validateFlags (f * flagsType ) error {
174
-
175
174
switch strings .ToLower (* f .status ) {
176
175
case strings .ToLower (intelcrd .GpuAllocationStateStatusReady ):
177
176
* f .status = intelcrd .GpuAllocationStateStatusReady
178
177
case strings .ToLower (intelcrd .GpuAllocationStateStatusNotReady ):
179
178
* f .status = intelcrd .GpuAllocationStateStatusNotReady
179
+ case "" :
180
+ return nil
180
181
default :
181
182
return fmt .Errorf ("unknown status: %v" , * f .status )
182
183
}
Original file line number Diff line number Diff line change 1
- apiVersion : gaudi.resource.intel.com/v1alpha1
2
- kind : GaudiClassParameters
3
- metadata :
4
- name : intel-gaudi-params-shared
5
- spec :
6
- shared : true
7
- ---
8
- apiVersion : resource.k8s.io/v1alpha2
9
- kind : ResourceClass
10
- metadata :
11
- name : intel-gaudi-shared
12
- driverName : gaudi.resource.intel.com
13
- parametersRef :
14
- apiGroup : gaudi.resource.intel.com/v1alpha1
15
- kind : GaudiClassParameters
16
- name : intel-gaudi-params-shared
17
-
18
- ---
19
- apiVersion : gaudi.resource.intel.com/v1alpha1
20
- kind : GaudiClassParameters
21
- metadata :
22
- name : intel-gaudi-params
23
- spec :
24
- shared : false
25
- ---
26
1
apiVersion : resource.k8s.io/v1alpha2
27
2
kind : ResourceClass
28
3
metadata :
@@ -32,15 +7,13 @@ parametersRef:
32
7
apiGroup : gaudi.resource.intel.com/v1alpha1
33
8
kind : GaudiClassParameters
34
9
name : intel-gaudi-params
35
-
36
10
---
37
11
apiVersion : gaudi.resource.intel.com/v1alpha1
38
12
kind : GaudiClassParameters
39
13
metadata :
40
14
name : intel-gaudi-monitor-params
41
15
spec :
42
16
monitor : true
43
- shared : false
44
17
---
45
18
apiVersion : resource.k8s.io/v1alpha2
46
19
kind : ResourceClass
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 19
19
serviceAccountName : intel-gaudi-resource-driver-service-account
20
20
initContainers :
21
21
- name : init
22
- image : intel/intel-gaudi-resource-driver:v0.1.0
22
+ image : intel/intel-gaudi-resource-driver:v0.1.1
23
23
imagePullPolicy : IfNotPresent
24
24
command : ["/kubelet-gaudi-plugin", "--status", "NotReady"]
25
25
env :
43
43
type : RuntimeDefault
44
44
containers :
45
45
- name : kubelet-plugin
46
- image : intel/intel-gaudi-resource-driver:v0.1.0
46
+ image : intel/intel-gaudi-resource-driver:v0.1.1
47
47
imagePullPolicy : IfNotPresent
48
48
command : ["/kubelet-gaudi-plugin"]
49
49
env :
71
71
mountPath : /etc/cdi
72
72
- name : varruncdi
73
73
mountPath : /var/run/cdi
74
- - name : defaults
75
- mountPath : " /defaults"
76
- readOnly : true
77
74
- name : sysfs
78
75
mountPath : " /sysfs"
79
76
securityContext :
101
98
- name : sysfs
102
99
hostPath :
103
100
path : /sys
104
- - name : defaults
105
- configMap :
106
- name : defaults
107
101
---
108
102
apiVersion : apps/v1
109
103
kind : Deployment
@@ -126,7 +120,7 @@ spec:
126
120
serviceAccountName : intel-gaudi-resource-driver-service-account
127
121
containers :
128
122
- name : controller
129
- image : intel/intel-gaudi-resource-driver:v0.1.0
123
+ image : intel/intel-gaudi-resource-driver:v0.1.1
130
124
imagePullPolicy : IfNotPresent
131
125
command : ["/gaudi-controller"]
132
126
env :
Original file line number Diff line number Diff line change 19
19
serviceAccountName : intel-gpu-resource-driver-service-account
20
20
initContainers :
21
21
- name : init
22
- image : intel/intel-gpu-resource-driver:v0.5.0
22
+ image : intel/intel-gpu-resource-driver:v0.5.1
23
23
imagePullPolicy : IfNotPresent
24
24
command : ["/kubelet-gpu-plugin", "--status", "NotReady"]
25
25
env :
43
43
type : RuntimeDefault
44
44
containers :
45
45
- name : kubelet-plugin
46
- image : intel/intel-gpu-resource-driver:v0.5.0
46
+ image : intel/intel-gpu-resource-driver:v0.5.1
47
47
imagePullPolicy : IfNotPresent
48
48
command : ["/kubelet-gpu-plugin"]
49
49
env :
@@ -126,7 +126,7 @@ spec:
126
126
serviceAccountName : intel-gpu-resource-driver-service-account
127
127
containers :
128
128
- name : controller
129
- image : intel/intel-gpu-resource-driver:v0.5.0
129
+ image : intel/intel-gpu-resource-driver:v0.5.1
130
130
imagePullPolicy : IfNotPresent
131
131
command : ["/gpu-controller"]
132
132
env :
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
16
- GAUDI_VERSION ?= v0.1.0
16
+ GAUDI_VERSION ?= v0.1.1
17
17
GAUDI_IMAGE_NAME ?= intel-gaudi-resource-driver
18
18
GAUDI_IMAGE_VERSION ?= $(GAUDI_VERSION )
19
19
GAUDI_IMAGE_TAG ?= $(REGISTRY ) /$(GAUDI_IMAGE_NAME ) :$(GAUDI_IMAGE_VERSION )
@@ -31,7 +31,7 @@ pkg/gaudi/cdihelpers/*.go \
31
31
pkg/gaudi/device/*.go \
32
32
pkg/gaudi/discovery/*.go
33
33
34
- GAUDI_LDFLAGS = ${LDFLAGS} -X ${PKG}/pkg/version.driverVersion=${GPU_VERSION }
34
+ GAUDI_LDFLAGS = ${LDFLAGS} -X ${PKG}/pkg/version.driverVersion=${GAUDI_VERSION }
35
35
36
36
.PHONY : gaudi
37
37
gaudi : $(GAUDI_BINARIES )
@@ -42,7 +42,7 @@ bin/gaudi-controller: cmd/gaudi-controller/*.go $(GAUDI_COMMON_SRC)
42
42
43
43
bin/kubelet-gaudi-plugin : cmd/kubelet-gaudi-plugin/* .go $(GAUDI_COMMON_SRC )
44
44
CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} \
45
- go build -a -ldflags " ${GAUDI_LDFLAGS} " -mod vendor -o $@ ./cmd/kubelet-gpu -plugin
45
+ go build -a -ldflags " ${GAUDI_LDFLAGS} " -mod vendor -o $@ ./cmd/kubelet-gaudi -plugin
46
46
47
47
.PHONY : gaudi-container-build
48
48
gaudi-container-build : cleanall vendor
Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
# Use a custom version for E2E tests if we are testing in CI
16
- GPU_VERSION ?= v0.5.0
16
+ GPU_VERSION ?= v0.5.1
17
17
GPU_IMAGE_NAME ?= intel-gpu-resource-driver
18
18
GPU_IMAGE_VERSION ?= $(GPU_VERSION )
19
19
GPU_IMAGE_TAG ?= $(REGISTRY ) /$(GPU_IMAGE_NAME ) :$(GPU_IMAGE_VERSION )
You can’t perform that action at this time.
0 commit comments