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

[post jobs] Like serving use generatedName #5664

Merged
merged 1 commit into from
Sep 15, 2021

Conversation

matzew
Copy link
Member

@matzew matzew commented Aug 25, 2021

Signed-off-by: Matthias Wessendorf mwessend@redhat.com

Proposed Changes

Pre-review Checklist

  • At least 80% unit test coverage
  • E2E tests for any new behavior
  • Docs PR for any user-facing impact
  • Spec PR for any new API feature
  • Conformance test for any change to the spec

Release Note

The post job is now having a generated name, instead of an unmaintained versioned name.

Docs

Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Aug 25, 2021
@knative-prow-robot knative-prow-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Aug 25, 2021
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: matzew

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

@knative-prow-robot knative-prow-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 25, 2021
@matzew
Copy link
Member Author

matzew commented Aug 25, 2021

/hold

/assign @dprotaso a change like on your serving PR for the generated name.
/assign @houshengbo doing the same for the name and the labling, like you did for serving

For the operator, since serving uses this generatedName, there is no issue if we in eventing now do the same, right?

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 25, 2021
@codecov
Copy link

codecov bot commented Aug 25, 2021

Codecov Report

Merging #5664 (b8968c8) into main (de1b52b) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #5664   +/-   ##
=======================================
  Coverage   82.68%   82.68%           
=======================================
  Files         200      200           
  Lines        6253     6253           
=======================================
  Hits         5170     5170           
  Misses        751      751           
  Partials      332      332           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update de1b52b...b8968c8. Read the comment docs.

@matzew
Copy link
Member Author

matzew commented Aug 26, 2021

@dprotaso, @houshengbo, @lionelvillard any comments 🙏 ?

@dprotaso
Copy link
Member

Right now we still have the storage version migration job in serving but it's an effective NOOP until we change the storage version of some CRDs which we haven't done in a while. We currently use generateName it's possible to re-apply this job over and over when upgrading & downgrading.

Given that I thought maybe in serving we switch to versioning the jobs. Maybe be deleting and re-introducing the post-install jobs when needed. But it looks like you want to go the other way. There's also the caveat of some post-install jobs being optional (ie. default-domain) so we continue offering those. Either way switching to generate name makes sense in cause you want to re-apply or downgrade etc.

I'm curious to hear @houshengbo's take given the operator has been dealing with both the versioned post-install jobs (from eventing) and the non-versioned ones. (from serving).

@lionelvillard
Copy link
Member

@houshengbo WDYT?

@matzew
Copy link
Member Author

matzew commented Aug 30, 2021

Given that I thought maybe in serving we switch to versioning the jobs. Maybe be deleting and re-introducing the post-install jobs when needed.

Ah, I thought it was intentionally done as is currently (e.g. have them always, even as NOOP).

In eventing we had be doing this before: deleting and re-introducing - but it was forgotten a for a few releases, which shows the downside of the "delete" and "re-introduce" model

@houshengbo
Copy link

Hi folks, thanks for reminding me.
There is no issue with the generated name for eventing.

@matzew
Copy link
Member Author

matzew commented Sep 2, 2021

/unhold

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Sep 2, 2021
@matzew
Copy link
Member Author

matzew commented Sep 15, 2021

A follow up, like serving, will be done in here: #5694

@lionelvillard mind getting me some LGTM?

@lionelvillard
Copy link
Member

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Sep 15, 2021
@knative-prow-robot knative-prow-robot merged commit 20ec9f7 into knative:main Sep 15, 2021
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. cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants