-
Notifications
You must be signed in to change notification settings - Fork 604
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
add post 017 job to remove pingsource finalizer #3836
Conversation
cmd/v0.17/pingsource-cleanup/main.go
Outdated
log.Printf("[ERROR] Failed to process env var: %s", err) | ||
os.Exit(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
if !env.DryRun { | ||
for _, ref := range cleanups { | ||
fmt.Printf("# will remove finalizer for %s/%s\n", ref.Namespace, ref.Name) | ||
ref.Finalizers = []string{} |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
b38a432
to
92f3951
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[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 |
Fixes #3588
Proposed Changes
Release Note
Docs
@houshengbo