-
Notifications
You must be signed in to change notification settings - Fork 112
rename cluster-osin-operator/cluster-authentication-operator #17
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
Conversation
ad9c844 to
1ad5727
Compare
2b9d8d7 to
6e7ab78
Compare
|
@sallyom want to rebase? let's get this thing merged! |
2d7b082 to
bc86875
Compare
pkg/operator2/operator.go
Outdated
| func defaultLabels() map[string]string { | ||
| return map[string]string{ | ||
| "app": "origin-cluster-osin-operator2", | ||
| "app": "origin-cluster-authentication-operator2", |
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.
we don't need the 2
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, fixed
pkg/operator2/operator.go
Outdated
|
|
||
| const ( | ||
| targetName = "openshift-osin" // TODO fix | ||
| targetName = "openshift-integrated-auth" |
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.
can you outline the new name requirements so we know if this matches
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.
from email thread (kube-apiserver example), naming conventions from @deads2k are as follows:
ClusterOperator name "authentication"
Operator Namespace “openshift-authentication-operator”
Operator Deployment “cluster-authentication-operator”
Operator Git repo “openshift/cluster-authentication-operator”
Operand Namespace “openshift-authentication” -edited targetName above to match
| componentNamespace = "openshift-authentication-operator" | ||
| ) | ||
|
|
||
| func NewOperator() *cobra.Command { |
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.
cmd.User needs fixing
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've changed to operator
pkg/cmd/operator2/cmd.go
Outdated
| const ( | ||
| componentName = "cluster-osin-operator2" | ||
| componentNamespace = "openshift-core-operators" | ||
| componentName = "cluster-authentication-operator2" |
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.
drop 2
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
| componentName = "cluster-osin-operator2" | ||
| componentNamespace = "openshift-core-operators" | ||
| componentName = "cluster-authentication-operator2" | ||
| componentNamespace = "openshift-authentication-operator" |
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.
cite requirements
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.
from email thread:
ClusterOperator name "authentication"
Operator Deployment “cluster-authentication-operator”
Operator Namespace “openshift-authentication-operator”
so, componentName should be "authentication" above according to email? However, looking at a cluster, most operators have the name "openshift-something-operator" and a few have "cluster-something-operator". I'm keeping with cluster-authentication-operator unless I hear otherwise, keeping with minimal change here.
pkg/cmd/operator/cmd.go
Outdated
| const ( | ||
| componentName = "cluster-osin-operator" | ||
| componentNamespace = "openshift-core-operators" | ||
| componentName = "cluster-authentication-operator" |
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.
do not touch anything in pkg/operator
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.
ok, done
| metadata: | ||
| namespace: openshift-core-operators | ||
| name: origin-cluster-osin-operator | ||
| namespace: openshift-authentication-operator |
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.
do not mess with the original operator, we have no tests
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.
ok, done
| image: quay.io/openshift/origin-cluster-authentication-operator:latest | ||
| imagePullPolicy: IfNotPresent | ||
| command: ["osin-operator", "operator"] | ||
| command: ["authentication-operator", "operator"] |
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.
this is the only line I expect to change
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
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.
so for both deployments, should be same, right?
command: ["authentication-operator", "operator"] (also in pkg/cmd/operator|operator2/cmd.go, same cmd.User for both? operator?)
| metadata: | ||
| namespace: openshift-core-operators | ||
| name: origin-cluster-osin-operator2 | ||
| namespace: openshift-authentication-operator |
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.
lots of 2's that need to die
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.
removed them
|
I do not think the risk of breaking operator1 is worth it, so I do no think we should touch the old operator at all. At the bare minimum openshift/origin#21733 needs to be merged before this. |
bc86875 to
bc05398
Compare
bc05398 to
76436e7
Compare
76436e7 to
e335abb
Compare
4213a55 to
09cff91
Compare
09cff91 to
1ac9642
Compare
ericavonb
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.
/lgtm
|
/hold cancel |
|
/hold |
|
/refresh |
1ac9642 to
d94b8c0
Compare
|
New changes are detected. LGTM label has been removed. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ericavonb, sallyom The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
3b2bede to
70125ad
Compare
|
/refresh |
|
/retest |
70125ad to
da42a7e
Compare
|
@sallyom: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
@enj @evb changed the import paths here, too
cluster-osin-operatortocluster-authentication-operatorand using the naming conventions laid out by @deads2k in email thread:
*note: - in this PR it's "cluster-authentication-operator". There isn't consistency with that
name in clusters today, although going with majoritiy it would be "openshift-authentication-operator"