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

strip off the old openshift namespace finalizer #20300

Merged

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Jul 12, 2018

This updates our existing finalizer to always and immediately remove the origin finalizer from namespaces. We no longer need it and this removes the cruft getting ready for an upgrade.

@sdodson how easy/hard is it to add a pre-upgrade step for 3.12 that checks to make sure that no namespace has a .spec.finalizers array that contains "openshift.io/origin"?

/assign @liggitt @mfojtik

@openshift-ci-robot openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jul 12, 2018
@deads2k deads2k mentioned this pull request Jul 12, 2018
17 tasks
@liggitt
Copy link
Contributor

liggitt commented Jul 12, 2018

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 12, 2018
@mfojtik
Copy link
Contributor

mfojtik commented Jul 12, 2018

/lgtm as well

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, liggitt, mfojtik

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

@sdodson
Copy link
Member

sdodson commented Jul 12, 2018

@sdodson how easy/hard is it to add a pre-upgrade step for 3.12 that checks to make sure that no namespace has a .spec.finalizers array that contains "openshift.io/origin"?

Doable, can you give me a namespace definition that I can use as a test case?

@deads2k
Copy link
Contributor Author

deads2k commented Jul 12, 2018

/retest

@deads2k
Copy link
Contributor Author

deads2k commented Jul 12, 2018

@sdodson how easy/hard is it to add a pre-upgrade step for 3.12 that checks to make sure that no namespace has a .spec.finalizers array that contains "openshift.io/origin"?

Doable, can you give me a namespace definition that I can use as a test case?

@sdodson
With

[deads@deads-02 origin]$ oc get ns foo -oyaml
apiVersion: v1
kind: Namespace
metadata:
  annotations:
    openshift.io/description: ""
    openshift.io/display-name: ""
    openshift.io/requester: system:admin
    openshift.io/sa.scc.mcs: s0:c8,c2
    openshift.io/sa.scc.supplemental-groups: 1000060000/10000
    openshift.io/sa.scc.uid-range: 1000060000/10000
  creationTimestamp: 2018-07-12T20:00:23Z
  name: foo
  resourceVersion: "9747"
  selfLink: /api/v1/namespaces/foo
  uid: 366dba60-860e-11e8-aa16-54e1ad486dd3
spec:
  finalizers:
  - openshift.io/origin
  - kubernetes
status:
  phase: Active

Without

[deads@deads-02 origin]$ oc get ns default -oyaml
apiVersion: v1
kind: Namespace
metadata:
  annotations:
    openshift.io/sa.scc.mcs: s0:c1,c0
    openshift.io/sa.scc.supplemental-groups: 1000000000/10000
    openshift.io/sa.scc.uid-range: 1000000000/10000
  creationTimestamp: 2018-07-12T15:54:13Z
  name: default
  resourceVersion: "444"
  selfLink: /api/v1/namespaces/default
  uid: d2c34638-85eb-11e8-ad1a-54e1ad486dd3
spec:
  finalizers:
  - kubernetes
status:
  phase: Active

@deads2k
Copy link
Contributor Author

deads2k commented Jul 12, 2018

@sdodson In 3.11 we have a controller which unconditionally removes the openshift finalizer. If they still have namespaces with the finalizer, the expectation is that simply letting the controllers run for 3.11 will remove it.

@openshift-merge-robot openshift-merge-robot merged commit 946d766 into openshift:master Jul 13, 2018
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. 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.

6 participants