Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions cmd/authentication-operator/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import (
utilflag "k8s.io/apiserver/pkg/util/flag"
"k8s.io/apiserver/pkg/util/logs"

"github.com/openshift/cluster-authentication-operator/pkg/cmd/operator"
"github.com/openshift/cluster-authentication-operator/pkg/cmd/operator2"
)

Expand Down Expand Up @@ -43,7 +42,6 @@ func NewAuthenticationOperatorCommand() *cobra.Command {
},
}

cmd.AddCommand(operator.NewOperator())
cmd.AddCommand(operator2.NewOperator())

return cmd
Expand Down
40 changes: 0 additions & 40 deletions manifests/cluster-authentication-operator_05_deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,45 +1,5 @@
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: openshift-authentication-operator
name: origin-cluster-authentication-operator1
labels:
app: origin-cluster-osin-operator
spec:
replicas: 1
selector:
matchLabels:
app: origin-cluster-osin-operator
template:
metadata:
name: origin-cluster-osin-operator
labels:
app: origin-cluster-osin-operator
spec:
serviceAccountName: openshift-authentication-operator
containers:
- name: operator
image: quay.io/openshift/origin-cluster-authentication-operator:v4.0
imagePullPolicy: IfNotPresent
command: ["authentication-operator", "operator1"]
args:
- "--config=/var/run/configmaps/config/operator-config.yaml"
- "-v=4"
volumeMounts:
- mountPath: /var/run/configmaps/config
name: config
volumes:
- name: config
configMap:
defaultMode: 440
name: openshift-authentication-operator-config
nodeSelector:
node-role.kubernetes.io/master: ""
tolerations:
- operator: Exists
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: openshift-authentication-operator
name: openshift-authentication-operator
Expand Down
18 changes: 0 additions & 18 deletions pkg/cmd/operator/cmd.go

This file was deleted.

125 changes: 0 additions & 125 deletions pkg/operator/operator.go

This file was deleted.

89 changes: 0 additions & 89 deletions pkg/operator/starter.go

This file was deleted.

3 changes: 1 addition & 2 deletions pkg/operator2/starter.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,13 @@ import (
const (
resync = 20 * time.Minute

// TODO unpause when ready
defaultOperatorConfig = `
apiVersion: operator.openshift.io/v1
kind: Authentication
metadata:
name: ` + globalConfigName + `
spec:
managementState: Paused
managementState: Managed
`

// TODO figure out the permanent home for top level CRDs and default CRs
Expand Down