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

RHOAI-v2.8: Sync from upstream #198

Merged

Conversation

VaishnaviHire
Copy link

No description provided.

cam-garrison and others added 30 commits February 22, 2024 17:56
)

Co-authored-by: Bartosz Majsak <bartosz.majsak@gmail.com>
Co-authored-by: Wen Zhou <wenzhou@redhat.com>
(cherry picked from commit 0e9c4ed)
)

* test: adds failing test to cover missconfigured tracker and cleanup logic

* fix: ensures cleanup of associated FeatureTracker

* chore(test): extracts secret creation to its own func

* chore: uses addCleanup func

(cherry picked from commit 55118bd)
* feat: enhances FeatureTracker with spec (#17)

* initial add tracker spec

* update tests, update crd

* add omitempty to origin struct

* undo accidental tag change

* re add empty line

* move pointer operator

* add testing

* lint

* re-lint changes

* add ownertype, move newOrigin() to shared util

* Update apis/features/v1/features_types.go

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

* remove origin from featureinitializer

* modify kserve sm step to match dashboard's

* make dsci servicemesh setup like dashboard's

* fix merge issues, lint

---------

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

* restore testing mistakenly removed in merge

* satisfy linter post merge conflicts

* fix linter post merge

* fix post merge issue

* split For() into With + DefinedBy

* rename origin to source, definedby to from

---------

Co-authored-by: Bartosz Majsak <bartosz.majsak@gmail.com>
(cherry picked from commit 591a291)
Co-authored-by: Bartosz Majsak <bartosz.majsak@gmail.com>
(cherry picked from commit 3558db6)
…pendatahub-io#814)

This prevents KNative's net-istio pods from being OOMKilled in environments with a large number of Secrets.

This would patch a Managed installation. Custom installations would be left untouched.

Signed-off-by: Edgar Hernández <23639005+israel-hdez@users.noreply.github.com>
(cherry picked from commit e1409af)
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
(cherry picked from commit 92beb80)
…pendatahub-io#816)

- this will be able to test live build if set devFlags on the Trustyai
with downstream RHOAI build

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
(cherry picked from commit f70e966)
- `FeaturesInitializer` (now named `FeaturesHandler`) becomes an entry point to compose features
    - it has two modes: cluster and component. Based on this mode it will initialize `.spec.source` transparently
    - there is no `Prepare` func anymore - it is now part of `Apply` and `Delete` - most importantly `FeaturesHandler` keeps track of created features so there is no need to keep adding to the slice explicitly
- Tests have been adjusted to focus on behavior rather than implementation details

(cherry picked from commit d6168fd)
favoring fluent interface for readability instead of passing values after a closure passed to Eventually or Consistenly Gomega checks.

(cherry picked from commit 312554d)
* add manual upgrade testing document

(cherry picked from commit f2b177a)
Instead of using our random string generation, this PR relies on how k8s does it internally.

See https://github.com/kubernetes/apimachinery/blob/f14778da5523847e4c07346e3161a4b4f6c9186e/pkg/util/rand/rand.go#L98

(cherry picked from commit 6530454)
`walkErr` is propagated as part of a recursive call when traversing a directory tree.

This adds a guard check and does not proceed if the error happens in the call chain.

Without this, the controller will `panic` in case of the wrong path defined for a manifest.

(cherry picked from commit 052124e)
…-io#843)

`client.Get()` will never return an error of `IsAlreadyExists` if the resource exists, it would rather return the object.

`IsAlreadyExists` error is only relevant with `client.Create`

(cherry picked from commit 12a4075)
Missed as part of opendatahub-io#839. I assumed it is part of default target

(cherry picked from commit d32bee5)
…pendatahub-io#846)

This is based on the assumption that calling the `make` default target ensures the repo is always in the desired state.

This includes:

- all generated artifacts are up-to-date with the code they are derived from
- code passes defined linter checks
- a subset of tests (fast tests) is passing
- no compilation errors

(cherry picked from commit 69356d3)
* Fix: add back logic to deal with uninstallation

- when CM exist and DSC CR exists

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

* update: cleanup finalzlier

* fix

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

* update: uninstallation process

- add logic to remove subscription
- do not call backup in DSCI during uninstallation
- add permisison of delete subscripton
- change function SubscriptionExists() return sub

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

* update: add deletion for DS project as well during uninstallation

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

* update: add calls of component.Cleanup() esp for kserve for now for
uninstall

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

* revert: deletion ds project during uninstall

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

* fix: extend timeout in unit-test till we update testcase

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

* cleanup: remove commented block

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

---------

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
(cherry picked from commit 9227687)
…ndatahub-io#850)

Signed-off-by: Vedant Mahabaleshwarkar <vmahabal@redhat.com>
(cherry picked from commit ae3b539)
…o#855)

- we do not need to have this call for every reconcile
- the function does patching namespace on downstream logic everytime

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
(cherry picked from commit 7d757e3)
* Add odh-trusted-ca-bundle CM to DSCInitialization

(cherry picked from commit 5d415c2)

* Update ca bundle configMap to use dscInit TrustedCABundle for the default value

(cherry picked from commit 9a94ef6)

* Add Trusted Bundle Configmap to all namespaces

* Add ManagementState to TrustedCABundle

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

fix

---------

Co-authored-by: Landon LaSmith <LLaSmith@redhat.com>
(cherry picked from commit d998839)
- simplifies interaction with cluster APIs by using basic `client.Interface` only instead.
- previously, for those CRDs we did not want to take as dependencies, `DynamicClient` was used. Now unstructured objects with GVK set instead are used with `client.Interface` instead.

(cherry picked from commit 3fb7fd8)
Signed-off-by: Landon LaSmith <LLaSmith@redhat.com>
Co-authored-by: Wen Zhou <wenzhou@redhat.com>
(cherry picked from commit 6c038ce)
opendatahub-io#863)

* feat(nwp): add ingress from cluster-monitoring to applicationnamespace

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

* update: code review and clean NWP not  needed for now

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

---------

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
(cherry picked from commit e7e3982)
* Fix Kserve Unmanaged Installation

* Update tests for kserve

(cherry picked from commit b467ed7)
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
(cherry picked from commit bef7e86)
- add clusterrolebinding prometheus-k8s-viewer
- add clusterrole prometheus-k8s-viewer
- this should be applied for both ODH and downstream
- add prometheus folder from config for bundle
- cleanup config for parts as duplicated:
  - tokenreviews
  - subjectaccessreviews
- remove leader_election related rbac, we dont use them
- remove dsci rbac fron config, we dont need them
-

Signed-off-by: Wen Zhou <wenzhou@redhat.com>
(cherry picked from commit 6bc16b0)
(cherry picked from commit 0be94f0)
(cherry picked from commit d7ccc88)
@VaishnaviHire
Copy link
Author

Excluded webhook changes, since I found a regression due to changes in operator name, service name

cc: @zdtsw @ykaliuta

@VaishnaviHire VaishnaviHire merged commit 8c2a81a into red-hat-data-services:main Feb 23, 2024
4 checks passed
@zdtsw
Copy link

zdtsw commented Feb 23, 2024

Excluded webhook changes, since I found a regression due to changes in operator name, service name

cc: @zdtsw @ykaliuta

i had a look at this, dont think it is a problem , more like the one in upstream is called opendatahub-* the one in downstream should be rhods-* / redhat-ods-*

cherrypick these 2 commits + rename it bundle:
#199

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.

10 participants