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

[release-4.17] MGMT-19028: IBI only apply the first resource in a file with multiple resources added as extra manifests #671

Open
wants to merge 1 commit into
base: release-4.17
Choose a base branch
from

Conversation

openshift-cherrypick-robot

This is an automated cherry-pick of #662

/assign tsorya

… resources added as extra manifests The issue is fixed by getting a NewYAMLOrJSONDecoder, and decodeing each resource incrementally in a loop until the end of the file is reached. This ensures the code read the entier file in case we get multiple definitions in a single file. Note that the applyManifests (used buth by IBU and IBI) will apply the resources in the order they are listed in the file without any dependency awareness. For example, if you list a Pod before the Namespace it depends on, IBI will still apply the Pod first unless you specifically handle ordering in the manifest file.

Signed-off-by: Eran Cohen <[email protected]>
@openshift-ci-robot
Copy link

openshift-ci-robot commented Oct 9, 2024

@openshift-cherrypick-robot: Ignoring requests to cherry-pick non-bug issues: MGMT-19028

In response to this:

This is an automated cherry-pick of #662

/assign tsorya

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

Copy link
Contributor

openshift-ci bot commented Oct 9, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign imiller0 for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found 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

@eranco74
Copy link
Collaborator

eranco74 commented Nov 3, 2024

/test images

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.

4 participants