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

Add a new extra variable for holding the update's parameters #1903

Merged

Conversation

sathlan
Copy link
Contributor

@sathlan sathlan commented Jun 18, 2024

Make sure that, when we use downstream repo setup we don't hardcode
cifmw_repo_setup_promotion.

To that end, and to add more flexibility to the variables that need to
be overwritten during update, take the key/value of the
cifmw_update_extras hash. It should be defined in a job and would
look like this:

cifmw_update_extras:
 cifmw_repo_setup_promotion: promotion
 other_var: value
 ...

That enables the job definition to pass all variables needed for the
update job with having new variable name for each override.

It also solves the problem of the hardcoded
cifmw_repo_setup_promotion as now the job has total control over the
variables passed.

Jira: https://issues.redhat.com/browse/OSPRH-7811

As a pull request owner and reviewers, I checked that:

  • Appropriate testing is done and actually running
  • Appropriate documentation exists and/or is up-to-date:
    • README in the role
    • Content of the docs/source is reflecting the changes

Copy link

Thanks for the PR! ❤️
I'm marking it as a draft, once your happy with it merging and the PR is passing CI, click the "Ready for review" button below.

@github-actions github-actions bot marked this pull request as draft June 18, 2024 18:03
@sathlan sathlan added the minor update Changes for minor update automation label Jun 18, 2024
@ciecierski
Copy link
Contributor

I like the change and idea for new cifmw_update_extras. Just can you rephrase description, please? The aim is to add cifmw_update_extras dict defined at zuul job definition level, instead of using pre-defined inline variables.

@sathlan sathlan requested review from marios and ciecierski June 19, 2024 10:14
@sathlan sathlan changed the title Support downstream repo_setup. Add a new extra variable for holding the parameters needed for the update Jun 19, 2024
@sathlan sathlan changed the title Add a new extra variable for holding the parameters needed for the update Add a new extra variable for holding the update's parameters Jun 19, 2024
Copy link
Contributor

@marios marios left a comment

Choose a reason for hiding this comment

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

o/

ci/playbooks/edpm/update.yml Show resolved Hide resolved
Copy link
Contributor

@ciecierski ciecierski left a comment

Choose a reason for hiding this comment

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

Please fix example in description and you have LGTM from me.

Make sure that, when we use downstream repo setup we don't hardcode
cifmw_repo_setup_promotion.

To that end, and to add more flexibility to the variables that need to
be overwritten during update, take the key/value of the
`cifmw_update_extras` hash. It should be defined in a job and would
look like this:

```
cifmw_update_extras:
 cifmw_repo_setup_promotion: promotion
 other_var: value
 ...
```

That enables the job definition to pass all variables needed for the
update job with having new variable name for each override.

It also solves the problem of the hardcoded
`cifmw_repo_setup_promotion` as now the job has total control over the
variables passed.
@sathlan sathlan force-pushed the downstream-repo branch from 5c8418c to d08936e Compare July 1, 2024 11:48
@ciecierski ciecierski marked this pull request as ready for review July 1, 2024 11:53
@ciecierski ciecierski requested a review from marios July 1, 2024 14:23
Copy link
Contributor

@marios marios left a comment

Choose a reason for hiding this comment

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

lgtm

ci/playbooks/edpm/update.yml Show resolved Hide resolved
@marios
Copy link
Contributor

marios commented Jul 3, 2024

/approve

@marios
Copy link
Contributor

marios commented Jul 3, 2024

@sathlan @ciecierski you need to harrass someone from this list https://github.com/openstack-k8s-operators/ci-framework/blob/main/OWNERS to add the /approve here for merge fyi

@pablintino
Copy link
Collaborator

/approve

Copy link
Contributor

openshift-ci bot commented Jul 3, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: marios, pablintino

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

@openshift-ci openshift-ci bot added the approved label Jul 3, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit e6406f5 into openstack-k8s-operators:main Jul 3, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm minor update Changes for minor update automation Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants