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 post 017 job to remove pingsource finalizer #3836

Merged

Conversation

lionelvillard
Copy link
Member

Fixes #3588

Proposed Changes

  • Add job to remove pingsource finalizers

Release Note


Docs

@houshengbo

@googlebot googlebot added the cla: yes Indicates the PR's author has signed the CLA. label Aug 13, 2020
@knative-prow-robot knative-prow-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 13, 2020
@knative-prow-robot knative-prow-robot added the area/test-and-release Test infrastructure, tests or release label Aug 13, 2020
Comment on lines 41 to 42
log.Printf("[ERROR] Failed to process env var: %s", err)
os.Exit(1)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
log.Printf("[ERROR] Failed to process env var: %s", err)
os.Exit(1)
log.Fatalf("[ERROR] Failed to process env var: %s", err)

cmd/v0.17/pingsource-cleanup/main.go Outdated Show resolved Hide resolved
if !env.DryRun {
for _, ref := range cleanups {
fmt.Printf("# will remove finalizer for %s/%s\n", ref.Namespace, ref.Name)
ref.Finalizers = []string{}
Copy link
Member

Choose a reason for hiding this comment

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

If for any reason there are other finalizers, we drop them all, can we remove the specific finalizer we're looking for?

Copy link
Member Author

@lionelvillard lionelvillard Aug 17, 2020

Choose a reason for hiding this comment

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

I was just lazy :-) Do you think that's needed or can we leave it like this?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I think it's needed.

Copy link
Member Author

Choose a reason for hiding this comment

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

done it and tested it.

@lionelvillard lionelvillard force-pushed the pingsource-v017-upgrade branch from b38a432 to 92f3951 Compare August 17, 2020 18:07
Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

/lgtm

@knative-prow-robot knative-prow-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 17, 2020
@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lionelvillard, pierDipi

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 merged commit d40f464 into knative:master Aug 17, 2020
@lionelvillard lionelvillard deleted the pingsource-v017-upgrade branch September 3, 2020 15:29
@lionelvillard lionelvillard restored the pingsource-v017-upgrade branch September 3, 2020 15:42
@lionelvillard lionelvillard deleted the pingsource-v017-upgrade branch September 3, 2020 15:45
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/test-and-release Test infrastructure, tests or release cla: yes Indicates the PR's author has signed the CLA. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PingSource migration job to remove finalizer
4 participants