Skip to content

Commit

Permalink
Adding a package for testing lifecycle agent.
Browse files Browse the repository at this point in the history
This commit adds support for testing IBU, a.k.a.
imagebasedupgrade.

Signed-off-by: Alexander Chuzhoy <[email protected]>
  • Loading branch information
achuzhoy committed Jan 10, 2024
1 parent 975bf26 commit c83c1a5
Show file tree
Hide file tree
Showing 9 changed files with 945 additions and 4 deletions.
3 changes: 2 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ require (
github.com/onsi/ginkgo/v2 v2.13.2
github.com/openshift-kni/cluster-group-upgrades-operator v0.0.0-20231216054307-28180628cf50
github.com/openshift-kni/k8sreporter v1.0.4
github.com/openshift-kni/lifecycle-agent v0.0.0-20240109211418-4489c4a1eb46
github.com/openshift/api v3.9.1-0.20190916204813-cdbe64fb0c91+incompatible
github.com/openshift/assisted-service/api v0.0.0-20240102175930-315899d8f379
github.com/openshift/assisted-service/models v0.0.0
Expand Down Expand Up @@ -119,7 +120,7 @@ require (
github.com/onsi/gomega v1.30.0 // indirect
github.com/openshift/custom-resource-status v1.1.3-0.20220503160415-f2fdb4999d87 // indirect
github.com/openshift/elasticsearch-operator v0.0.0-20220613183908-e1648e67c298 // indirect
github.com/openshift/library-go v0.0.0-20231017173800-126f85ed0cc7 // indirect
github.com/openshift/library-go v0.0.0-20231027143522-b8cd45d2d2c8 // indirect
github.com/operator-framework/operator-registry v1.30.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_golang v1.18.0 // indirect
Expand Down
6 changes: 4 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ github.com/openshift-kni/cluster-group-upgrades-operator v0.0.0-20231216054307-2
github.com/openshift-kni/cluster-group-upgrades-operator v0.0.0-20231216054307-28180628cf50/go.mod h1:vfydLuqf4QsLXI5busOIjbuvvURuE0oeLCwjvXj34Mo=
github.com/openshift-kni/k8sreporter v1.0.4 h1:jEwX6Pqei60kO1U0JLo+ePjQaP7DNn/M6d63KCS2tS0=
github.com/openshift-kni/k8sreporter v1.0.4/go.mod h1:fg8HI9yxiKAi6UzR6NTtrmQmA2WKzUqmkRUHwQ1+Bj8=
github.com/openshift-kni/lifecycle-agent v0.0.0-20240109211418-4489c4a1eb46 h1:I6ZcMvy98fAzd/5IySrli8inlMuUFfS0+LE57ln8lqs=
github.com/openshift-kni/lifecycle-agent v0.0.0-20240109211418-4489c4a1eb46/go.mod h1:+7AXvmYXtR4+UjvoMDeeRt4MrV32YK0uUHtHhEPn8MQ=
github.com/openshift/api v0.0.0-20231115210901-4c4a0a24f2fc h1:VCR7TBU90EPmz1fjW1sqdVVpe5GmOHyJTTyQ5XmnmtE=
github.com/openshift/api v0.0.0-20231115210901-4c4a0a24f2fc/go.mod h1:yimSGmjsI+XF1mr+AKBs2//fSXIOhhetHGbMlBEfXbs=
github.com/openshift/assisted-service/api v0.0.0-20240102175930-315899d8f379 h1:DiuUa4amJCq7mHf/JvVqng1cJVbfZ4oQfvu8MBtAZFg=
Expand All @@ -439,8 +441,8 @@ github.com/openshift/elasticsearch-operator v0.0.0-20220613183908-e1648e67c298 h
github.com/openshift/elasticsearch-operator v0.0.0-20220613183908-e1648e67c298/go.mod h1:6dxhWPY3Wr/0b0eGrFpV7gcyeS+ne48Mo9OQ9dxrLNI=
github.com/openshift/hive/apis v0.0.0-20220222213051-def9088fdb5a h1:E+XPJs/aVvYsrlJzo2ED38ZTR2RTNUlFMmOaFAAdMZg=
github.com/openshift/hive/apis v0.0.0-20220222213051-def9088fdb5a/go.mod h1:E1bgquRiwfugdArdecPbpYIrAdve5kTzMaJb0+8jMXI=
github.com/openshift/library-go v0.0.0-20231017173800-126f85ed0cc7 h1:pJLcCSJzdiWCaJ4bAepgnvwMdP33LumbVJyWSW7+3ng=
github.com/openshift/library-go v0.0.0-20231017173800-126f85ed0cc7/go.mod h1:jgxNp8aApJnZtECid9SUSr5Bu6DLo8Hfdv1DgFZaYA8=
github.com/openshift/library-go v0.0.0-20231027143522-b8cd45d2d2c8 h1:5t2pHTyvfpy5xcKrLCj+6OITwIRdyH1CNG8Ob3vVJvc=
github.com/openshift/library-go v0.0.0-20231027143522-b8cd45d2d2c8/go.mod h1:8UzmrBMCn7+GzouL8DVYkL9COBQTB1Ggd13/mHJQCUg=
github.com/openshift/local-storage-operator v0.0.0-20231220121151-4e580bd14c46 h1:ltEp1+e1U18KCi8E+879li1FHCC+Wz/kNUPX3Y2o95o=
github.com/openshift/local-storage-operator v0.0.0-20231220121151-4e580bd14c46/go.mod h1:14iQ/wwY3MTQRMHe04Lvx8Zhbh7ESJSRsN40coqDRw8=
github.com/openshift/machine-config-operator v0.0.1-0.20230807154212-886c5c3fc7a9 h1:lEH5TQGyDjnJZocsI4FE0BcWKkKtqW3OOsBkRvGd9Rs=
Expand Down
5 changes: 5 additions & 0 deletions pkg/clients/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import (
nmstatev1 "github.com/nmstate/kubernetes-nmstate/api/v1"
nmstateV1alpha1 "github.com/nmstate/kubernetes-nmstate/api/v1alpha1"

lcav1alpha1 "github.com/openshift-kni/lifecycle-agent/api/v1alpha1"
operatorV1 "github.com/openshift/api/operator/v1"
hiveextV1Beta1 "github.com/openshift/assisted-service/api/hiveextension/v1beta1"
agentInstallV1Beta1 "github.com/openshift/assisted-service/api/v1beta1"
Expand Down Expand Up @@ -190,6 +191,10 @@ func SetScheme(crScheme *runtime.Scheme) error {
return err
}

if err := lcav1alpha1.AddToScheme(crScheme); err != nil {
return err
}

if err := operatorV1.Install(crScheme); err != nil {
return err
}
Expand Down
Loading

0 comments on commit c83c1a5

Please sign in to comment.