Skip to content

Conversation

@sadlerap
Copy link
Contributor

@sadlerap sadlerap commented Oct 27, 2025

If both the old and the new platform params exist in the pipelinerun, we should only pull from the new platform params. The old parameters are likely going to be something we can't interpret with CEL expressions if the new paramter is set. To avoid issues, only read from the old expressions if the new expressions are not set.

See KONFLUX-9917 for issues that have already cropped up in our production clusters.

@sadlerap sadlerap requested a review from gbenhaim October 27, 2025 18:43
@openshift-ci openshift-ci bot requested a review from eisraeli October 27, 2025 18:43
@github-actions
Copy link
Contributor

🤖 Gemini AI Assistant Available

Hi @sadlerap! I'm here to help with your pull request. You can interact with me using the following commands:

Available Commands

  • @gemini-cli /review - Request a comprehensive code review

    • Example: @gemini-cli /review Please focus on security and performance
  • @gemini-cli <your question> - Ask me anything about the codebase

    • Example: @gemini-cli How can I improve this function?
    • Example: @gemini-cli What are the best practices for error handling here?

How to Use

  1. Simply type one of the commands above in a comment on this PR
  2. I'll analyze your code and provide detailed feedback
  3. You can track my progress in the workflow logs

Permissions

Only OWNER, MEMBER, or COLLABORATOR users can trigger my responses. This ensures secure and appropriate usage.


This message was automatically added to help you get started with the Gemini AI assistant. Feel free to delete this comment if you don't need assistance.

@github-actions
Copy link
Contributor

🤖 Hi @sadlerap, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

@sadlerap sadlerap force-pushed the kueue-skip-old-params-staging branch from 738e195 to 38fc3a1 Compare October 27, 2025 18:47
Copy link
Member

@filariow filariow left a comment

Choose a reason for hiding this comment

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

@openshift-ci
Copy link

openshift-ci bot commented Oct 28, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sadlerap
Once this PR has been reviewed and has the lgtm label, please assign elsony for approval. For more information see the 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

@openshift-ci openshift-ci bot removed the approved label Oct 28, 2025
@sadlerap
Copy link
Contributor Author

@filariow added in e9ab7a0, PTAL

@sadlerap sadlerap requested a review from filariow October 28, 2025 19:47
@sadlerap sadlerap force-pushed the kueue-skip-old-params-staging branch from e9ab7a0 to dc259bd Compare October 31, 2025 20:37
We came across a pipelinerun that was using the new parameter format to
parameterize the old template format via a matrix definition.  While
it's likely that the pipelinerun is doing extra configuration here that
it doesn't need to (it had `PLATFORM` defined in both matrix params and
task params), tekton doesn't reject it.  Therefore, we need to consider
the possibility that these pipelineruns may exist - tekton-kueue will
need to handle such pipelines without issues.

The problem in the pipelinerun that caused issues was that the old
platform parameter was populated with substitution data that cannot fit
inside a label.  The CEL expressions don't run against the data that has
been substituted in (that would require us to monitor TaskRuns instead),
so they would try to create labels with invalid characters, which would
be rejected by kubernetes.  Since the old platforms parameter will only
contain garbage like this, and this can happen only if the new platform
parameter is populated, only extract the old parameter if the new
parameter isn't exist.

See KONFLUX-9917 for further details.

Fixes: KONFLUX-9917
Signed-off-by: Andy Sadler <[email protected]>
Ensure that this change works as intended.

Only add for the staging and development platforms, since production is
not yet affected.

Part-of: KONFLUX-9917
Signed-off-by: Andy Sadler <[email protected]>
@sadlerap sadlerap force-pushed the kueue-skip-old-params-staging branch from dc259bd to b7aed2a Compare November 3, 2025 21:57
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.

3 participants