Commit Graph

15 Commits

Author SHA1 Message Date
Yaroslav Borbat
d04225a00b
Introduce customizeComponents option (#3070)
* init

Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>

* add e2e

Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>

* fix unit tests

Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>

* fix matchselector for cdi-deployment

Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>

* rebase

Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>

* refactor test of customizeComponents

Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>

---------

Signed-off-by: Yaroslav Borbat <yaroslav.borbat@flant.com>
2024-01-28 20:57:39 +01:00
Michael Henriksen
bddba645a8
GetActiveCDI() should return success if single resource in error state (#3080)
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2024-01-25 00:16:06 +01:00
Longchuanzheng
a5f17e4f8a
Add replicas for cdi infra (#2933)
* Add deployment replicas set for cdi infra

Signed-off-by: zhuanlan <zhuanlan_yewu@cmss.chinamobile.com>

* Add podAntiAffinity for cdi deployment

Signed-off-by: zhuanlan <zhuanlan_yewu@cmss.chinamobile.com>

* Fix linter problem

Signed-off-by: zhuanlan <zhuanlan_yewu@cmss.chinamobile.com>

* add e2e tests modify the new replica count fields and verify the results

Signed-off-by: zhuanlan <zhuanlan_yewu@cmss.chinamobile.com>

---------

Signed-off-by: zhuanlan <zhuanlan_yewu@cmss.chinamobile.com>
2023-12-18 04:01:08 +01:00
alromeros
030846ac9c
Allow modifying log verbosity in CDI (#2882)
* Allow modifying log verbosity from cdiConfig

This commit adds a new field in the cdiConfig API to allow specifying a log verbosity level to initialize all loggers.

Changes in this field will mean restarting all CDI components to initialize all loggers.

Signed-off-by: Alvaro Romero <alromero@redhat.com>

* Update debug documentation to cover log verbosity

Signed-off-by: Alvaro Romero <alromero@redhat.com>

---------

Signed-off-by: Alvaro Romero <alromero@redhat.com>
2023-09-08 14:26:58 +02:00
garonsky
4e3ee4c44d
Add support for imagePullSecrets (#2589)
* Add support for imagePullSecrets in the CDI CR, to support pulling
images from repositories that require secrets.

The imagePullSecrets is propagated to the following components: cdi-apiserver,
cdi-deployment, and cdi-uploadproxy. The definition of imagePullSecrets in
cdi-operator must be done manually.

Signed-off-by: Gleb Aronsky <gleb.aronsky@windriver.com>

* Modifying code to incorporate review comments.

Signed-off-by: Gleb Aronsky <gleb.aronsky@windriver.com>

---------

Signed-off-by: Gleb Aronsky <gleb.aronsky@windriver.com>
Co-authored-by: Gleb Aronsky <gleb.aronsky@windriver.com>
2023-03-18 01:41:35 +00:00
Roman Mohr
b9c0684469
Separate sdk api (#2208)
* Introduce controller-runtime-sdk api package

Split controller-runtime-sdk into the base package and
controller-runtime-sdk/api.

Signed-off-by: Roman Mohr <rmohr@redhat.com>

* go mod vendor

Signed-off-by: Roman Mohr <rmohr@redhat.com>

* Update code references

Signed-off-by: Roman Mohr <rmohr@redhat.com>
2022-03-31 21:31:18 +02:00
Michael Henriksen
d56e0cca05
23 libs (#2077)
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2022-01-07 16:56:25 +01:00
Nahshon Unna Tsameret
48b7606d4d
Replace the priorityClass to kubevirt-cluster-critical (#2011)
The current priority class for the operator is openshift-user-critical. This priority class does not exist in Kubernetes.

Instead, use the kubevirt-cluster-critical priority class that is created by HCO.

Signed-off-by: Nahshon Unna-Tsameret <nunnatsa@redhat.com>
2021-11-08 17:29:13 +01:00
Michael Henriksen
aedaf513ec
Move apis to staging, push to containerized-data-importer-api (#1997)
* move apis to new staging area

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* add script to push to staging

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* fix lint check and api reference

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* push staging to api repo

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2021-10-28 13:40:24 +02:00
Alexander Wels
17599e5c20
Allow users to set priority class via CDI cr. (#1896)
Allow users to specify the priority class of the CDI control
plane using the CDI CR. Verifies that the set value is valid
before passing to the deployments.

Signed-off-by: Alexander Wels <awels@redhat.com>
2021-08-21 15:48:33 +02:00
Michael Henriksen
d92c2f459d
update deps and bazel (#1815)
* update deps and bazel

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* fix apidocs and unit tests

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>

* fix generate-verify

Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2021-06-08 01:31:59 +02:00
akalenyu
0428dc5465
Stop using deprecated admissionregistration, apiregistration v1beta1 (#1804)
Switch admissionregistration.k8s.io/v1beta, apiregistration.k8s.io/v1beta1 to v1
as they are deprecated and will be removed from k8s-1.22.

apiextensions.k8s.io/v1beta1 was updated to v1 by https://github.com/kubevirt/containerized-data-importer/pull/1307.

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
2021-05-26 22:52:47 +02:00
Michael Henriksen
838ff7939a
update api for cert configuration (#1542)
Signed-off-by: Michael Henriksen <mhenriks@redhat.com>
2021-01-14 16:11:03 +01:00
Jakub Dzon
7f368900de
Updated controller-lifecycle-operator-sdk dependency (#1389)
Signed-off-by: Jakub Dzon <jdzon@redhat.com>
2020-09-24 14:39:29 +02:00
Jakub Dzon
5aa47587d3
Introducing operator lifecycle sdk (#1350)
Signed-off-by: Jakub Dzon <jdzon@redhat.com>
2020-09-17 23:25:26 +02:00