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

Split ProwJob volumes into presets #689

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

irbekrm
Copy link
Contributor

@irbekrm irbekrm commented May 24, 2022

This PR:

  • splits volumes for ProwJob configs into presets so there is less of a chance of human error when copy-pasting jobs around
  • fixes two such errors where a volume was duplicated here and here

I have checked that the presets get merged as expected by checking some of the job configs with mkpj:

  • clone https://github.com/kubernetes/test-infra
  • from within that repo run go run ./prow/cmd/mkpj/main.go --config-path=<path to jetstack/testing/config/config.yaml> --job-config-path=<path to jetstack/testing/config/jobs/cert-manager> --job <job-name>
  • observe that the output ProwJob yaml contains the expected volumes and volume mounts

Signed-off-by: irbekrm [email protected]

To make ProwJob configs more DRY and reduce the possibility of human error when creating new job configs

Signed-off-by: irbekrm <[email protected]>
@jetstack-bot jetstack-bot added dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. area/cert-manager Indicates a PR related to cert-manager approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels May 24, 2022
@irbekrm
Copy link
Contributor Author

irbekrm commented May 25, 2022

I've created a couple cleanup issues from this #690, #691

Copy link
Member

@SgtCoDFish SgtCoDFish left a comment

Choose a reason for hiding this comment

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

❤️ changes ❤️

This is awesome, such a huge readability improvement 👍

I've not checked all of the changes really closely - I assume they'll work, and if they don't I'll happily review any fixes.

Great stuff 🎉

@jetstack-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: irbekrm, SgtCoDFish

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

@SgtCoDFish
Copy link
Member

/lgtm

@jetstack-bot jetstack-bot added the lgtm Indicates that a PR is ready to be merged. label Jun 1, 2022
@jetstack-bot jetstack-bot merged commit c0f9cc7 into cert-manager:master Jun 1, 2022
@jetstack-bot
Copy link
Contributor

@irbekrm: Updated the job-config configmap in namespace default at cluster default using the following files:

  • key cert-manager-periodics.yaml using file config/jobs/cert-manager/cert-manager/cert-manager-periodics.yaml
  • key cert-manager-presubmits.yaml using file config/jobs/cert-manager/cert-manager/cert-manager-presubmits.yaml
  • key cert-manager-release-previous-periodics.yaml using file config/jobs/cert-manager/cert-manager/release-previous/cert-manager-release-previous-periodics.yaml
  • key cert-manager-release-previous-presubmits.yaml using file config/jobs/cert-manager/cert-manager/release-previous/cert-manager-release-previous-presubmits.yaml
  • key config.yaml using file config/jobs/cert-manager/config.yaml

In response to this:

This PR:

  • splits volumes for ProwJob configs into presets so there is less of a chance of human error when copy-pasting jobs around
  • fixes two such errors where a volume was duplicated here and here

I have checked that the presets get merged as expected by checking some of the job configs with mkpj:

  • clone https://github.com/kubernetes/test-infra
  • from within that repo run go run ./prow/cmd/mkpj/main.go --config-path=<path to jetstack/testing/config/config.yaml> --job-config-path=<path to jetstack/testing/config/jobs/cert-manager> --job <job-name>
  • observe that the output ProwJob yaml contains the expected volumes and volume mounts

Signed-off-by: irbekrm [email protected]

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/test-infra repository.

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. area/cert-manager Indicates a PR related to cert-manager dco-signoff: yes Indicates that all commits in the pull request have the valid DCO sign-off message. lgtm Indicates that a PR is ready to be merged. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants