Skip to content

add post 017 job to remove pingsource finalizer#3836

Merged
knative-prow-robot merged 3 commits into
knative:masterfrom
lionelvillard:pingsource-v017-upgrade
Aug 17, 2020
Merged

add post 017 job to remove pingsource finalizer#3836
knative-prow-robot merged 3 commits into
knative:masterfrom
lionelvillard:pingsource-v017-upgrade

Conversation

@lionelvillard
Copy link
Copy Markdown
Contributor

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 thread cmd/v0.17/pingsource-cleanup/main.go Outdated
Comment on lines +41 to +42
log.Printf("[ERROR] Failed to process env var: %s", err)
os.Exit(1)
Copy link
Copy Markdown
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)

Comment thread cmd/v0.17/pingsource-cleanup/main.go Outdated
Comment thread cmd/v0.17/pingsource-cleanup/main.go Outdated
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
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
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
Copy Markdown
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

Details 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