Mikko Ylinen
d696380a40
move to k8s.io v1.21.0
...
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-04-16 09:44:31 +03:00
Mikko Ylinen
0892a34705
move to k8s.io v1.20.x and klog/v2 v2.4.0
...
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-01-21 15:34:39 +02:00
Mikko Ylinen
d63037c2e1
Move to Admission v1 API
...
Update to controller-runtime v0.7.0 and Admission types to v1 with it.
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-12-17 11:02:21 +02:00
Dmitry Rozhkov
f0fa9df292
operator: prepare for publishing at operatorhub.io
2020-11-24 18:35:56 +02:00
Dmitry Rozhkov
7e621f7905
upgrade controller-gen to v0.4.1
...
The new versions adds admissionReviewVersions annotation and makes it
mandatory.
2020-11-18 11:44:37 +02:00
Dmitry Rozhkov
5f0da56045
Upgrade to k8s v1.19.3
2020-11-10 16:09:20 +02:00
Mikko Ylinen
e054440a32
webhooks: move to admissionregistration.k8s.io/v1
...
With controller-gen 0.4.0, admissionregistration defaults to v1 API.
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-10-14 14:48:40 +03:00
Mikko Ylinen
0574c42078
fpga: move getRequestedResources() to new package
...
The function will be re-used by other webhooks too so it's better
to move it to its own package.
The unit tests are taken from the original implementation with some
minor changes.
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-09-10 15:31:26 +03:00
Mikko Ylinen
f4c33d198e
patcher: move ENV validation away from getRequestedResources
...
This commit adds new function validateContainer() that runs the
same FPGA_* ENV validation checks as before in getRequestedResources().
The restructuring is done in preparations for moving
getRequestedResources() to a separate package.
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-09-10 15:31:26 +03:00
Mikko Ylinen
76aa7b91f0
go.mod: update controller-runtime to v0.6.2
...
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-09-02 15:16:12 +03:00
Dmitry Rozhkov
71075d4478
lint: enable exportloopref, prealloc and scopelint checks
2020-08-31 11:10:51 +03:00
Dmitry Rozhkov
a62c6f7d5e
fpga webhook: reimplement to use kubebuilder framework
...
Simplify upgrade procedure to newer versions of kubernetes by relying on the
kubebuilder framework rather than using codegen directly.
Closes #377
2020-08-17 12:09:03 +03:00