Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync: from main to rhoai-2.6 #163

Merged
merged 20 commits into from
Jan 16, 2024

Conversation

zdtsw
Copy link

@zdtsw zdtsw commented Jan 15, 2024

ruivieira and others added 20 commits January 15, 2024 18:01
Update SOP url, RHODS to RHOAI

Fix trustyai-alerting.rules indentation
creds to: @bartoszmajsak

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
* feat: implements failing test for deletion using configmap

* fix(cleanup): cleans up dependant resources

The code responsible for cleaning up resources on cfg map presence was failing early due to operations on nil list instance of KfDef resources, leading to panic and restart of the pod making an impression that cleanup takes forever

* fix(reconcile): requeue only when actual error happens

Original code was always causing requeue as even if upgrade.OperatorUninstall(r.Client, r.RestConfig) resulted in nil error (success), it was wrapped in error with message error while operator uninstall: <nil>

* fix: reverts img placeholder in kustomize

* fix: removes commented out code
Add `make clean` which removes build artefacts. At the moment it's
./bin, ./odh-manifests/* and cover.out from test target.

Do not remove odh-manifests directory since it is commited to VCS.

In the recipe chown of $(LOCALBIN) since setup-envtest makes its dir
RO for some reason [1].

Related: red-hat-data-services#696

[1] https://github.com/kubernetes-sigs/controller-runtime/blob/main/tools/setup-envtest/store/store.go#L191

Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
)

* chore: cleanup owns on RS,Pod, daemonset, CRD
* cleanup: remove developmentconfig not in use
* chore: move rbac into one file and remove duplicated one

---------
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
…vices#767)

This should allow Service Mesh to run on any OpenShift flavor.

Fixes opendatahub-io/kserve#138

Signed-off-by: Edgar Hernández <23639005+israel-hdez@users.noreply.github.com>
- change DefFlags to pointer type , see reason from example: https://www.sohamkamani.com/golang/omitempty/
- change both in DSC and DSCI
…verless (red-hat-data-services#781)

* feature: add support for unmanaged and remove for servicemesh and
serverless

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* Update components/kserve/kserve.go

Co-authored-by: Bartosz Majsak <bartosz.majsak@gmail.com>

---------

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
Co-authored-by: Bartosz Majsak <bartosz.majsak@gmail.com>
…services#756)

* fix(nilpointer): when more than one DSCI CR in cluster

- use the one with ealiest timestamp as the default one
- suggest user to delete other CR but only use default one
- only set the extra/wrong DSCI in Error status

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
Co-authored-by: Bartosz Majsak <bartosz.majsak@gmail.com>
- use a more generaic label than bind to namespace name

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
…lder (red-hat-data-services#792)

This way we can obtain interact with the cluster from partial builders instead of defering it to Apply phase.
…ervices#798)

* fix: disables default network policy management

* fix: returns correct error

Co-authored-by: Wen Zhou <wenzhou@redhat.com>

---------

Co-authored-by: Wen Zhou <wenzhou@redhat.com>
@zdtsw zdtsw merged commit d65a846 into red-hat-data-services:rhoai-2.6 Jan 16, 2024
4 checks passed
@zdtsw
Copy link
Author

zdtsw commented Jan 16, 2024

i took the liberty to merge this one for getting builds of 2.6
for any issue after this we can make more fixes to the release branch during the week.

zdtsw added a commit that referenced this pull request Jan 19, 2024
* sync: from main to rhoai-2.6 (#163)

* Add recording and alerting rules for TrustyAI

Update SOP url, RHODS to RHOAI

Fix trustyai-alerting.rules indentation

* fix(kserve): check on multiple depends operators if all pre-installed (#744)

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* update: rewrite func to check operator (#745)

creds to: @bartoszmajsak

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* fix(cleanup): cleans up dependant resources (#748)

* feat: implements failing test for deletion using configmap

* fix(cleanup): cleans up dependant resources

The code responsible for cleaning up resources on cfg map presence was failing early due to operations on nil list instance of KfDef resources, leading to panic and restart of the pod making an impression that cleanup takes forever

* fix(reconcile): requeue only when actual error happens

Original code was always causing requeue as even if upgrade.OperatorUninstall(r.Client, r.RestConfig) resulted in nil error (success), it was wrapped in error with message error while operator uninstall: <nil>

* fix: reverts img placeholder in kustomize

* fix: removes commented out code

* fix(features): makes rest config loader more flexible (#760)

* add table of contents to readme (#769)

* Makefile: add clean target (#733)

Add `make clean` which removes build artefacts. At the moment it's
./bin, ./odh-manifests/* and cover.out from test target.

Do not remove odh-manifests directory since it is commited to VCS.

In the recipe chown of $(LOCALBIN) since setup-envtest makes its dir
RO for some reason [1].

Related: #696

[1] https://github.com/kubernetes-sigs/controller-runtime/blob/main/tools/setup-envtest/store/store.go#L191

Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>

* chore: cleanup owns on RS,Pod, daemonset, CRD (#777)

* chore: cleanup owns on RS,Pod, daemonset, CRD
* cleanup: remove developmentconfig not in use
* chore: move rbac into one file and remove duplicated one

---------
Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* update(kserve): add monitoring logic (#782)

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* chore(mesh): Use third party service account tokens (#767)

This should allow Service Mesh to run on any OpenShift flavor.

Fixes opendatahub-io/kserve#138

Signed-off-by: Edgar Hernández <23639005+israel-hdez@users.noreply.github.com>

* chore: change log info for monitoring patch namespace (#787)

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* fix devflags empty object (#659)

- change DefFlags to pointer type , see reason from example: https://www.sohamkamani.com/golang/omitempty/
- change both in DSC and DSCI

* feature: add support for unmanaged and remove for servicemesh and serverless (#781)

* feature: add support for unmanaged and remove for servicemesh and
serverless

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* Update components/kserve/kserve.go

Co-authored-by: Bartosz Majsak <bartosz.majsak@gmail.com>

---------

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
Co-authored-by: Bartosz Majsak <bartosz.majsak@gmail.com>

* fix(nilpointer): when more than one DSCI CR in cluster (#756)

* fix(nilpointer): when more than one DSCI CR in cluster

- use the one with ealiest timestamp as the default one
- suggest user to delete other CR but only use default one
- only set the extra/wrong DSCI in Error status

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
Co-authored-by: Bartosz Majsak <bartosz.majsak@gmail.com>

* chore: change label name (#790)

- use a more generaic label than bind to namespace name

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* Remove lavlas from OWNERS (#791)

* fix(builder): initializes rest config before invoking any partial builder (#792)

This way we can obtain interact with the cluster from partial builders instead of defering it to Apply phase.

* chore: shifts FeatureTracker creation to Feature's Apply phase (#795)

* fix(mesh): disables default network policy management (#798)

* fix: disables default network policy management

* fix: returns correct error

Co-authored-by: Wen Zhou <wenzhou@redhat.com>

---------

Co-authored-by: Wen Zhou <wenzhou@redhat.com>

* feat(linters): Enable all linters by default. (#692)

---------

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
Signed-off-by: Edgar Hernández <23639005+israel-hdez@users.noreply.github.com>
Co-authored-by: Rui Vieira <ruidevieira@googlemail.com>
Co-authored-by: Bartosz Majsak <bartosz.majsak@gmail.com>
Co-authored-by: Ajay Jaganathan <36824134+AjayJagan@users.noreply.github.com>
Co-authored-by: Yauheni Kaliuta <ykaliuta@redhat.com>
Co-authored-by: Edgar Hernández <ehernand@redhat.com>
Co-authored-by: Landon LaSmith <2432396+LaVLaS@users.noreply.github.com>

* update: rebranding for rhoai from rhods (#160)

* update: rebranding for rhoai from rhods

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* Update: new icon data and link to dashboard icon

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

---------

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* fix: couple of changes (#164)

* fix: couple of changes

- change from 2.5 missing on 2.6
- version/branch from components
- generated bundle with rbac
- linter

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* [cherry-pick]: odh opendatahub-io#809

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

---------

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

* update(trustyai): set component by default as Managed as GA in 2.6

Signed-off-by: Wen Zhou <wenzhou@redhat.com>

---------

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
Signed-off-by: Yauheni Kaliuta <ykaliuta@redhat.com>
Signed-off-by: Edgar Hernández <23639005+israel-hdez@users.noreply.github.com>
Co-authored-by: Rui Vieira <ruidevieira@googlemail.com>
Co-authored-by: Bartosz Majsak <bartosz.majsak@gmail.com>
Co-authored-by: Ajay Jaganathan <36824134+AjayJagan@users.noreply.github.com>
Co-authored-by: Yauheni Kaliuta <ykaliuta@redhat.com>
Co-authored-by: Edgar Hernández <ehernand@redhat.com>
Co-authored-by: Landon LaSmith <2432396+LaVLaS@users.noreply.github.com>
zdtsw added a commit that referenced this pull request Jan 26, 2024
- this is causing MWC CR from kserve did not get cleaned up when kserve is Removed

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
zdtsw added a commit to zdtsw-forking/rhods-operator that referenced this pull request Jan 26, 2024
…a-services#174)

- this is causing MWC CR from kserve did not get cleaned up when kserve is Removed

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants