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

fix(feature): ensures all new resources are created in one reconcile #1159

Merged

Conversation

bartoszmajsak
Copy link
Contributor

Description

Manifests used by Feature to create cluster resources can be either defined as a single resource per file or grouped together and separated using the --- delimiter. Even though the former approach is currently preferred across the codebase, the latter is used to create Envoy filters for the KServe setup.

When applying resources not yet present in the cluster, the original implementation returns after creating the first resource, leaving the rest unprocessed. They are applied in the next reconcile loop, though again on a one-per-reconcile event basis. This is not a bug per se, as it will eventually result in creating all resources; however, it is suboptimal.

This change ensures all resources defined in a single YAML manifest, separated using ---, are processed in a single go.

How Has This Been Tested?

Enhanced integration test, which, when executed without this patch, fails due to described issue.

Screenshot or short clip

Merge criteria

  • You have read the contributors guide.
  • Commit messages are meaningful - have a clear and concise summary and detailed explanation of what was changed and why.
  • Pull Request contains a description of the solution, a link to the JIRA issue, and to any dependent or related Pull Request.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

Manifests used by Feature to create cluster resources can be either
defined as a single resource per file or grouped together and separated
using the `---` delimiter. Even though the former approach is currently
preferred across the codebase, the latter is used to create Envoy filters
for the KServe setup.

When applying resources not yet present in the cluster, the original
implementation returns after creating the first resource, leaving the rest
unprocessed. They are applied in the next reconcile loop, though again
on a one-per-reconcile event basis. This is not a bug per se, as it will
eventually result in creating all resources; however, it is suboptimal.

This change ensures all resources defined in a single YAML manifest,
separated using `---`, are processed in a single go.
@zdtsw zdtsw requested review from VaishnaviHire and israel-hdez and removed request for ajaypratap003 and asanzgom August 8, 2024 07:09
Copy link

openshift-ci bot commented Aug 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ykaliuta, zdtsw

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@bartoszmajsak
Copy link
Contributor Author

@zdtsw prow is borked?

@zdtsw
Copy link
Member

zdtsw commented Aug 8, 2024

@zdtsw prow is borked?

seems so, lets get it a rest and try again later today

@bartoszmajsak
Copy link
Contributor Author

/retest

@openshift-merge-bot openshift-merge-bot bot merged commit 959643d into opendatahub-io:incubation Aug 8, 2024
8 checks passed
@israel-hdez
Copy link
Contributor

@zdtsw a review was needed from me?

@zdtsw
Copy link
Member

zdtsw commented Aug 9, 2024

More on the reference side @israel-hdez since it is related to kserve

zdtsw referenced this pull request in zdtsw-forking/rhods-operator Aug 15, 2024
…ed-hat-data-services#1159)

Manifests used by Feature to create cluster resources can be either
defined as a single resource per file or grouped together and separated
using the `---` delimiter. Even though the former approach is currently
preferred across the codebase, the latter is used to create Envoy filters
for the KServe setup.

When applying resources not yet present in the cluster, the original
implementation returns after creating the first resource, leaving the rest
unprocessed. They are applied in the next reconcile loop, though again
on a one-per-reconcile event basis. This is not a bug per se, as it will
eventually result in creating all resources; however, it is suboptimal.

This change ensures all resources defined in a single YAML manifest,
separated using `---`, are processed in a single go.

(cherry picked from commit 959643d)
openshift-merge-bot bot referenced this pull request in red-hat-data-services/rhods-operator Aug 16, 2024
…1159)

Manifests used by Feature to create cluster resources can be either
defined as a single resource per file or grouped together and separated
using the `---` delimiter. Even though the former approach is currently
preferred across the codebase, the latter is used to create Envoy filters
for the KServe setup.

When applying resources not yet present in the cluster, the original
implementation returns after creating the first resource, leaving the rest
unprocessed. They are applied in the next reconcile loop, though again
on a one-per-reconcile event basis. This is not a bug per se, as it will
eventually result in creating all resources; however, it is suboptimal.

This change ensures all resources defined in a single YAML manifest,
separated using `---`, are processed in a single go.

(cherry picked from commit 959643d)
MarianMacik pushed a commit to MarianMacik/opendatahub-operator that referenced this pull request Jan 22, 2025
…flux/component-updates/odh-trustyai-service-operator-v2-17

chore(deps): update odh-trustyai-service-operator-v2-17 to 0ec163c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants