-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Cleanup oadm router somewhat #7251
Cleanup oadm router somewhat #7251
Conversation
@detiber starting with 1.2/3.2 we will want to pass --subdomain=ROUTER_SUBDOMAIN to oadm router in a single le. The default config should remain for back compat. |
[test] |
fc91672
to
1231ab0
Compare
Ok, this now includes even more function - it:
I've done local testing and everything seems to be ok, but needs a bit more look and love. @detiber FYI this is changing router default to create a service account - all other flags are the same, but you can now omit --credentials, and we probably want to start setting --subdomain |
b6ed377
to
f4302bc
Compare
@@ -64,20 +66,31 @@ you have failover protection.` | |||
secretsVolumeName = "secret-volume" | |||
secretsPath = "/etc/secret-volume" | |||
|
|||
defaultCertificateDir = "/etc/pki/tls/private" |
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.
is this standard? if so, [citation needed]
as a comment
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.
f4302bc
to
ec6bd91
Compare
@ramr review please |
moar eyes |
@Kargakis - would you mind giving this some eyeballs since I'm tied up still? |
ObjectMeta: kapi.ObjectMeta{ | ||
Name: fmt.Sprintf("%s-certs", cfg.Name), | ||
}, | ||
Type: "kubernetes.io/tls", |
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.
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.
Not in our branch yet
On Wed, Feb 17, 2016 at 11:51 AM, Michail Kargakis <[email protected]
wrote:
In pkg/cmd/admin/router/router.go
#7251 (comment):Name: secretsVolumeName, ReadOnly: true, MountPath: secretsPath, }
mounts = append(mounts, mount)
- }
- if len(defaultCert) > 0 {
// TODO: extract the private key from the CRT and set it as its own key
// TODO: use upstream constants for this
secret := &kapi.Secret{
ObjectMeta: kapi.ObjectMeta{
Name: fmt.Sprintf("%s-certs", cfg.Name),
},
Type: "kubernetes.io/tls",
—
Reply to this email directly or view it on GitHub
https://github.com/openshift/origin/pull/7251/files#r53193982.
ffc743f
to
0bdd6e9
Compare
@liggitt review last commit |
8f44d9f
to
f2d7d02
Compare
one question on newline in encoding PEM blocks |
Does add trailing newline. |
Don't require user to have SCC access to create a router, clean up errors, check the appropriate scc permissions. Stop exposing hostPorts and use secrets for the default certificate.
f2d7d02
to
241d02b
Compare
[merge] |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/5028/) (Image: devenv-rhel7_3476) |
Evaluated for origin merge up to 241d02b |
[test] |
Well this is a nice flake:
|
[test] |
[test] |
Evaluated for origin test up to 241d02b |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pr_origin/1380/) |
Merged by openshift-bot
Still more work to do in the router command, it's gotten... opaque.
@liggitt