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

fix: Set TektonConfig Pruner #233

Merged

Conversation

adambkaplan
Copy link
Member

@adambkaplan adambkaplan commented Dec 11, 2024

Changes

Starting in Tekton Operator v0.58.0, TektonConfig objects must set a value for keep or keepSince if the pruner is enabled [1]. If Shipwright bootstraps the TektonConfig object and does not set a value for .spec.pruner.keep (or .keepSince), it risks failing to reconcile the TektonConfig instance or worse [2].

Fixing by setting the keep value to match the Tekton operator default.

Fixes #231

[1] tektoncd/operator#410
[2] tektoncd/operator#2450

Submitter Checklist

  • Includes tests if functionality changed/was added
  • Includes docs if changes are user-facing
  • Set a kind label on this PR
  • Release notes block has been filled in, or marked NONE

See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.

Release Notes

When the operator creates a TektonConfig object, enable the pruner with a default `keep` setting of 100.

@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Dec 11, 2024
Starting in Tekton Operator v0.58.0, TektonConfig objects must set a
value for `keep` or `keepSince` if the pruner is enabled [1].
If Shipwright bootstraps the TektonConfig object and does not set a
value for `.spec.pruner.keep` (or `.keepSince`), it risks failing to
reconcile the TektonConfig instance or worse [2].

Fixing by setting the `keep` value to match the Tekton operator
default.

Fixes shipwright-io#231

[1] tektoncd/operator#410
[2] tektoncd/operator#2450

Signed-off-by: Adam Kaplan <adam.kaplan@redhat.com>
@adambkaplan adambkaplan added the kind/bug Categorizes issue or PR as related to a bug. label Dec 11, 2024
@jkhelil
Copy link
Contributor

jkhelil commented Dec 12, 2024

/approve

Copy link
Contributor

openshift-ci bot commented Dec 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jkhelil

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 Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 12, 2024
@SaschaSchwarze0 SaschaSchwarze0 added this to the release-v0.14.0 milestone Dec 12, 2024
Copy link
Member

@SaschaSchwarze0 SaschaSchwarze0 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 Dec 12, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit 4d84444 into shipwright-io:main Dec 12, 2024
5 checks passed
@adambkaplan adambkaplan deleted the set-tekton-pruner branch December 12, 2024 13:21
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. kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[BUG] Shipwright Operator Creates Invalid TektonConfig
3 participants