-
Notifications
You must be signed in to change notification settings - Fork 27
Create services for access to servers #52
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
Create services for access to servers #52
Conversation
|
NOTE: This PR is a draft because it requires the work in PR #50 - as it currently stands the new tests are tested against the "latest" tag of the quay.io repo - not the changes in this PR! |
raghavendra-talur
left 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.
Except for one small change, everything else looks very good!
The ServerGroup determines the name of the server (or group of servers) actually hosting the share. Today it is a 1:1 relationship but may not always be so. Add this operator determined value to the status of the SmbShare resource. Signed-off-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Previously, we were just using the name of the SmbShare. Now we use the derived (but often the same value) server group name. Signed-off-by: John Mulligan <jmulligan@redhat.com>
The share label is either meaningless or worse, misleading. Remove it from the set of labels the operator applies to the deployment. Signed-off-by: John Mulligan <jmulligan@redhat.com>
Allow the operator to configure services that go along with a share. Signed-off-by: John Mulligan <jmulligan@redhat.com>
Add a function to support creating a service that can be used to access the pod and port 455 hosting an smb share. Signed-off-by: John Mulligan <jmulligan@redhat.com>
After creating the deployment, create a service that exposes port 445 and matches the label specific to the share's server group. Signed-off-by: John Mulligan <jmulligan@redhat.com>
Use the in-cluster dns to access a share by the name of the service that gets created by the operator. Signed-off-by: John Mulligan <jmulligan@redhat.com>
Signed-off-by: John Mulligan <jmulligan@redhat.com>
7d5b490 to
5fd2deb
Compare
|
@raghavendra-talur or @obnoxxx PTAL. We'll need this as a starting point for future work. |
First, the patches define & name a Server Group concept, implied as part of the Phase 1 design doc. This is the name of smb server (or group of servers) hosting the share defined by a SmbShare resource.
Then this name is used to properly label and create kubernetes Services to expose port 445 for the instance.
A new test case, using the k8s internal dns name for the service is added.