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

Prevent new project creation with openshift/kubernetes/kube prefixes #13673

Merged
merged 1 commit into from
Apr 13, 2017
Merged

Prevent new project creation with openshift/kubernetes/kube prefixes #13673

merged 1 commit into from
Apr 13, 2017

Conversation

liggitt
Copy link
Contributor

@liggitt liggitt commented Apr 7, 2017

Reserves the following namespaces: openshift, kube, kubernetes
Reserves the following prefixes: openshift-, kube-, kubernetes-

@liggitt
Copy link
Contributor Author

liggitt commented Apr 7, 2017

[test]

@liggitt
Copy link
Contributor Author

liggitt commented Apr 7, 2017

@deads2k @enj we need to actually prevent requesting new projects with these prefixes before doing the check on an upgrade helps us

@openshift-bot
Copy link
Contributor

Evaluated for origin test up to d654a6d

@enj
Copy link
Contributor

enj commented Apr 7, 2017

  1. Add some tests
  2. The ansible check does not reserve kubernetes[-*]
  3. @sdodson I think we should revert Add pre-upgrade check for reserved namespaces openshift-ansible#3535 from the ansible 3.5 branch. That is, run the SDN check for 3.4 -> 3.5. Run all checks for 3.5 -> 3.6.

@enj
Copy link
Contributor

enj commented Apr 7, 2017

cc @jupierce since you hit this.

@enj enj added this to the 1.6.0 milestone Apr 7, 2017
@sdodson
Copy link
Member

sdodson commented Apr 7, 2017

@sdodson I think we should revert openshift/openshift-ansible#3535 from the ansible 3.5 branch. That is, run the SDN check for 3.4 -> 3.5. Run all checks for 3.5 -> 3.6.

Why do you say that? It's going to painful either today or tomorrow neither is easier to deal with.

@enj
Copy link
Contributor

enj commented Apr 7, 2017

Why do you say that? It's going to painful either today or tomorrow neither is easier to deal with.

@sdodson Because we enforce the SDN stuff via the API in 3.5 and thus it makes sense to check when upgrading to 3.5. This PR will go into 3.6, thus it does not make sense to check for something that is not being enforced (because users could still make more reserved namespaces in 3.5 meaning you will still have problems when upgrading to 3.6).

Any upgrade check from version A -> B should imply that in version B the API enforces the requirement from then on (and that it did not enforce it in version A).

@liggitt
Copy link
Contributor Author

liggitt commented Apr 7, 2017

I anticipate picking this to 3.5.1. The upgrade check will run against 3.5.1 as well, right?

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/633/) (Base Commit: 42c3bfa)

@sdodson
Copy link
Member

sdodson commented Apr 7, 2017

I anticipate picking this to 3.5.1. The upgrade check will run against 3.5.1 as well, right?

Not if we revert the check. I say we leave it in if you're going to introduce this in 3.5.1.

+1 to making the two checks separate module calls, perhaps by passing in a list of checks to run?

@enj
Copy link
Contributor

enj commented Apr 7, 2017

Yeah based on Jordan's intent to backport it I say we leave it as-is.

Opened openshift/openshift-ansible#3883 to track updates for the check.

@enj
Copy link
Contributor

enj commented Apr 10, 2017

[testextended][extended:cmd]

@liggitt
Copy link
Contributor Author

liggitt commented Apr 11, 2017

wrong extended test suite (though the fact that the core suite fails for unrelated reasons is separately concerning)

@openshift-bot
Copy link
Contributor

Evaluated for origin testextended up to d654a6d

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/testextended SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin_extended/152/) (Base Commit: b3cacc5) (Extended Tests: cmd)

@liggitt
Copy link
Contributor Author

liggitt commented Apr 12, 2017

[merge]

@enj
Copy link
Contributor

enj commented Apr 12, 2017

Flake #13739

@openshift-bot
Copy link
Contributor

Evaluated for origin merge up to d654a6d

@openshift-bot
Copy link
Contributor

openshift-bot commented Apr 13, 2017

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/331/) (Base Commit: 6cd9bbc) (Image: devenv-rhel7_6141)

@openshift-bot openshift-bot merged commit 7271a65 into openshift:master Apr 13, 2017
@liggitt liggitt deleted the reserved-namespaces branch April 17, 2017 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants