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

NO-JIRA: manifests: make template manifests valid YAML #1171

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

petr-muller
Copy link
Member

@petr-muller petr-muller commented Mar 24, 2025

CVO manifests present in the payload contain plain templating {{yada}} placeholders where final manifests expect to contain strings, and because { } has meaning in YAML, these manifests are invalid without template engine processing.

CVO manifests are applied by CVO itself, which processes them through the templating engine, which makes them valid YAML. In an attempt to address OCPBUGS-30080, I want to process the CVO manifests through oc adm release new machinery, which requires them to be valid YAML.

@openshift-ci-robot openshift-ci-robot added jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. labels Mar 24, 2025
@openshift-ci-robot
Copy link
Contributor

@petr-muller: This pull request references Jira Issue OCPBUGS-30090, which is invalid:

  • expected the bug to be open, but it isn't
  • expected the bug to target either version "4.19." or "openshift-4.19.", but it targets "4.16.0" instead
  • expected the bug to be in one of the following states: NEW, ASSIGNED, POST, but it is Closed (Done-Errata) instead

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

CVO manifests are applied by CVO itself, which processes them through the templating engine, which makes them valid YAML. In an attempt to address OCPBUGS-30090, I want to process the CVO manifests through oc adm release new machinery, which requires them to be valid YAML.

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.

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 24, 2025
@petr-muller petr-muller changed the title OCPBUGS-30090: manifests: make template manifests valid YAML OCPBUGS-30080: manifests: make template manifests valid YAML Mar 24, 2025
@openshift-ci-robot
Copy link
Contributor

@petr-muller: This pull request references Jira Issue OCPBUGS-30080, which is invalid:

  • expected the bug to target the "4.19.0" version, but no target version was set

Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.

The bug has been updated to refer to the pull request using the external bug tracker.

In response to this:

CVO manifests are applied by CVO itself, which processes them through the templating engine, which makes them valid YAML. In an attempt to address OCPBUGS-30090, I want to process the CVO manifests through oc adm release new machinery, which requires them to be valid YAML.

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.

@petr-muller
Copy link
Member Author

/wip

@petr-muller petr-muller changed the title OCPBUGS-30080: manifests: make template manifests valid YAML WIP: OCPBUGS-30080: manifests: make template manifests valid YAML Mar 24, 2025
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 24, 2025
@petr-muller
Copy link
Member Author

/retest

@petr-muller
Copy link
Member Author

/test all

@petr-muller
Copy link
Member Author

/retest

@petr-muller petr-muller changed the title WIP: OCPBUGS-30080: manifests: make template manifests valid YAML NO-JIRA: manifests: make template manifests valid YAML Mar 26, 2025
@openshift-ci-robot
Copy link
Contributor

@petr-muller: This pull request explicitly references no jira issue.

In response to this:

CVO manifests are applied by CVO itself, which processes them through the templating engine, which makes them valid YAML. In an attempt to address OCPBUGS-30080, I want to process the CVO manifests through oc adm release new machinery, which requires them to be valid YAML.

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.

@openshift-ci-robot openshift-ci-robot removed the jira/invalid-bug Indicates that a referenced Jira bug is invalid for the branch this PR is targeting. label Mar 26, 2025
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 26, 2025
@petr-muller
Copy link
Member Author

I have marked this as NO-JIRA instead of linking OCPBUGS-30080, because this PR is just a prerequisite for a future fix in oc that I will pursue for 4.20

Copy link
Member

@wking wking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 26, 2025
@hongkailiu
Copy link
Member

CVO manifests are applied by CVO itself, which processes them through the templating engine, which makes them valid YAML.

Do you mean "which makes them 'invalid' YAML"?

@petr-muller petr-muller force-pushed the ocpbugs-30090-fixup-template-manifests branch from 6dd622f to 5c1cdcc Compare March 27, 2025 17:25
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Mar 27, 2025
@petr-muller
Copy link
Member Author

/cc @hongkailiu

@openshift-ci openshift-ci bot requested a review from hongkailiu March 27, 2025 17:28
@petr-muller
Copy link
Member Author

Do you mean "which makes them 'invalid' YAML"?

Updated the description to hopefully use clearer language.

@hongkailiu
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 27, 2025
@hongkailiu
Copy link
Member

The unit test should be fixed by

$ UPDATE=true go test -count 1 -run TestRenderManifest ./pkg/payload/...

/lgtm cancel

@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Mar 27, 2025
CVO manifests are applied by CVO itself, which processes them through the
templating engine, which makes them valid YAML. In an attempt to address
OCPBUGS-30090, I want to process the CVO manifests through `oc adm release new`
machinery, which requires them to be valid YAML.
@petr-muller petr-muller force-pushed the ocpbugs-30090-fixup-template-manifests branch from 5c1cdcc to 7918adf Compare March 28, 2025 17:02
@petr-muller
Copy link
Member Author

I actually removed the comment from the deployment manifest by mistake, I will be only able to remove it once OCPBUGS-30080 is fixed.

@hongkailiu
Copy link
Member

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 28, 2025
Copy link
Contributor

openshift-ci bot commented Mar 28, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: hongkailiu, petr-muller, wking

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

Copy link
Contributor

openshift-ci bot commented Mar 28, 2025

@petr-muller: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-agnostic-operator-devpreview 7918adf link false /test e2e-agnostic-operator-devpreview
ci/prow/e2e-hypershift 7918adf link true /test e2e-hypershift

Full PR test history. Your PR dashboard.

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 kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants