-
Notifications
You must be signed in to change notification settings - Fork 113
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,11 +1,11 @@ | ||
| apiVersion: rbac.authorization.k8s.io/v1 | ||
| kind: ClusterRoleBinding | ||
| metadata: | ||
| name: system:openshift:operator:osin | ||
| name: system:openshift:operator:authentication | ||
| roleRef: | ||
| kind: ClusterRole | ||
| name: cluster-admin # TODO fix, this is madness | ||
| subjects: | ||
| - kind: ServiceAccount | ||
| namespace: openshift-core-operators | ||
| name: origin-cluster-osin-operator | ||
| namespace: openshift-authentication-operator | ||
| name: origin-cluster-authentication-operator |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| apiVersion: v1 | ||
| kind: ServiceAccount | ||
| metadata: | ||
| namespace: openshift-authentication-operator | ||
| name: origin-cluster-authentication-operator | ||
| labels: | ||
| app: origin-cluster-authentication-operator |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,12 +16,12 @@ spec: | |
| labels: | ||
| app: origin-cluster-osin-operator | ||
| spec: | ||
| serviceAccountName: origin-cluster-osin-operator | ||
| serviceAccountName: origin-cluster-authentication-operator | ||
| containers: | ||
| - name: operator | ||
| image: quay.io/openshift/origin-cluster-authentication-operator:latest | ||
| imagePullPolicy: IfNotPresent | ||
| command: ["osin-operator", "operator"] | ||
| command: ["authentication-operator", "operator"] | ||
| args: | ||
| - "--config=/var/run/configmaps/config/operator-config.yaml" | ||
| - "-v=4" | ||
|
|
@@ -32,7 +32,7 @@ spec: | |
| - name: config | ||
| configMap: | ||
| defaultMode: 440 | ||
| name: origin-cluster-osin-operator-config | ||
| name: origin-cluster-authentication-operator-config | ||
| nodeSelector: | ||
| node-role.kubernetes.io/master: "" | ||
| tolerations: | ||
|
|
@@ -41,27 +41,27 @@ spec: | |
| apiVersion: apps/v1 | ||
| kind: Deployment | ||
| metadata: | ||
| namespace: openshift-core-operators | ||
| name: origin-cluster-osin-operator2 | ||
| namespace: openshift-authentication-operator | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. lots of 2's that need to die
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. removed them |
||
| name: origin-cluster-authentication-operator | ||
| labels: | ||
| app: origin-cluster-osin-operator2 | ||
| app: origin-cluster-authentication-operator | ||
| spec: | ||
| replicas: 1 | ||
| selector: | ||
| matchLabels: | ||
| app: origin-cluster-osin-operator2 | ||
| app: origin-cluster-authentication-operator | ||
| template: | ||
| metadata: | ||
| name: origin-cluster-osin-operator | ||
| name: origin-cluster-authentication-operator | ||
| labels: | ||
| app: origin-cluster-osin-operator2 | ||
| app: origin-cluster-authentication-operator | ||
| spec: | ||
| serviceAccountName: origin-cluster-osin-operator | ||
| serviceAccountName: origin-cluster-authentication-operator | ||
| containers: | ||
| - name: operator | ||
| image: quay.io/openshift/origin-cluster-authentication-operator:latest | ||
| imagePullPolicy: IfNotPresent | ||
| command: ["osin-operator", "operator2"] | ||
| command: ["authentication-operator", "operator"] | ||
| args: | ||
| - "--config=/var/run/configmaps/config/operator-config.yaml" | ||
| - "-v=4" | ||
|
|
@@ -82,7 +82,7 @@ spec: | |
| - name: config | ||
| configMap: | ||
| defaultMode: 440 | ||
| name: origin-cluster-osin-operator-config | ||
| name: origin-cluster-authentication-operator-config | ||
| nodeSelector: | ||
| node-role.kubernetes.io/master: "" | ||
| tolerations: | ||
|
|
||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,19 +3,19 @@ package operator2 | |
| import ( | ||
| "github.com/spf13/cobra" | ||
|
|
||
| "github.com/openshift/cluster-osin-operator/pkg/operator2" | ||
| "github.com/openshift/cluster-osin-operator/pkg/version" | ||
| "github.com/openshift/cluster-authentication-operator/pkg/operator2" | ||
| "github.com/openshift/cluster-authentication-operator/pkg/version" | ||
| "github.com/openshift/library-go/pkg/controller/controllercmd" | ||
| ) | ||
|
|
||
| const ( | ||
| componentName = "cluster-osin-operator2" | ||
| componentNamespace = "openshift-core-operators" | ||
| componentName = "cluster-authentication-operator" | ||
| componentNamespace = "openshift-authentication-operator" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cite requirements
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. from email thread: 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. |
||
| ) | ||
|
|
||
| func NewOperator() *cobra.Command { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cmd.User needs fixing
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've changed to |
||
| cmd := controllercmd.NewControllerCommandConfig(componentName, version.Get(), operator2.RunOperator).NewCommand() | ||
| cmd.Use = "operator2" | ||
| cmd.Short = "Start the Osin Operator2" // temp names and such | ||
| cmd.Use = "operator" | ||
| cmd.Short = "Start the Authentication Operator" | ||
| return cmd | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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?)